I seem to have a problem with using CGI, when i run the following code.
So the user selected an option from an HTML drop down list, this list information is forward to the program, which then displays that pages that the user asks for, by running the following routine
But when the this page is displayed by my prog,
sub displayreg() { print $q->start_form; print "<b>Please enter the details below to register a new user </b>" print "<EM>Users Username from </EM>"; print $q->textfield('username') +; print $q->submit(-name=>'Action',-value=>'Submit',-onClick=>®isteru +ser()); print $q->reset; print $q->endform; print "<BR>"; }
So when i create another routine down the page to enter the details into a textfile on the system or email it, it does not work
sub registeruser() { printf ("The username you entered was $q->param('username')); }
In reply to CGI submit running sub routine by minixman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |