welshy has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am sorry to bother everyone but im in a bit of a muddle. I have looked everywhere (including perl monks) for the answer (and found one that i thought might work on perl monks but i couldn't make it work).
My problem is that i am making a small web library (books, Dvd's) with a flat file database for a project and i have come to a problem that has stumped me.
I need to have my script generate a dynamic form with option buttons for however many records were added (this i have done by just looping a table with sequential record Id no.s for the option button values). I then need to set these option buttons and recieve them in another form.
My question is (sorry it took so long) how do i recieve the inputs in the next script if i dont know how many different fields im going to have?
I understand (read it in perl monks and tried it) that i can read teh inputs to an array and but i could not make it work.
These inputs are all for the same field by the way. id much appreciate some help.
here is what i have so far
#!/usr/local/bin/perl -w # loanType.pl # library script to set the loan types of the records require "cgi-lib.pl"; print &PrintHeader; print "<HTML><HEAD><TITLE>Library Admin Screen</TITLE> <LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"library.css\"></ +HEAD> <BODY BGCOLOR=\"#336699\">"; #parse form &ReadParse(*input); #from form $action = $input{'action'}; $itemId = $input{'itemId'}; $firstId = $input{'first'}; $lastId = $input{'last'}; $tempIdStorer = $firstId; for ($firstId..$lastId) { @loanType = $input{'$firstId'}; $i++; } #####rest of my code to alter the records etc.
id really, really appreciate any help anyone can give me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dynamic form inputs
by rinceWind (Monsignor) on Apr 11, 2002 at 20:57 UTC | |
|
Re: dynamic form inputs
by gav^ (Curate) on Apr 11, 2002 at 20:48 UTC | |
|
Re: dynamic form inputs
by XeneX (Initiate) on Apr 12, 2002 at 01:45 UTC | |
by welshy (Initiate) on Apr 12, 2002 at 17:52 UTC |