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
In reply to dynamic form inputs by welshy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |