in reply to Why is my CGI.pm script trying to assign data before pressing submit.

You could always toss it into a while loop.

while (!defined $report) { $count=$count+1 if ($count == 1) { "7.) What do you want to name the report:", textfield('report'), } else { "7.) You MUST Supply report Name:", textfield('report'), } }


Just a thought, obviously the if/else would have to do the other things you are attempting.

"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
  • Comment on Re: Why is my CGI.pm script trying to assign data before pressing submit.
  • Download Code