in reply to Why is my CGI.pm script trying to assign data before pressing submit.
print '<INPUT TYPE="HIDDEN" NAME="PROCESS" VALUE="PARTTWO"><BR>';
Then in your script, you check if the script is being processed for someone that is just coming to your program for the first time or if they hit submit and using your program to process their input.
if ( param('PROCESS') ) { # They're using your form to process their input... # Now you can check if the filename is given if (!defined($report)) { die ...; } } else { # They're using your program for the first time print "7.) What do you want to name ..."; }
HTH,
Jason
|
|---|