Never mind. I found that I needed to declare one of the variables. Once I did that, the variables were passed.
Janitor note: Original content follows:
I am running a NW 6.5 server which is running Apache2. In my file makequiz.cgi, I have the following lines of code:
use vars qw(@allquestions @allanswers @explain $anslength @allselectio +ns $file $fname $lname $time $reviewtime $idinput $id $courselocation + $useripaddress $questionno @log $clocktime $log $type $value @answer +s $buttonname %selections @options); print header; print start_form (-name=>'makequiz', -method=>'POST', -action=>"http:/ +/ist221.nsm.tridenttech.edu/perl/gradequiz.cgi"); print hidden(-name=>"answers", -default=>\@allanswers); print hidden(-name=>"questions", -default=>\@allquestions); print hidden(-name=>"selections", -default=>\@allselections); print hidden(-name=>"explain", -default=>\@explain); print hidden(-name=>'fname', -value=>$fname); print hidden(-name=>'lname', -value=>$lname); print hidden(-name=>'reviewtime', -value=>$reviewtime); print hidden(-name=>'file', -value=>$file); print hidden(-name=>'id', -value=>$id); print submit (-value=>'Grade'); print
Considered by Corion for restoration of original content. Final vote: (keep/edit/delete): 0/13/1. Janitored and unconsidered by davido.
In reply to Can't seem to pass variables by chriso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |