in reply to Executing a function on submit
Make sure that the ACTION parameter of the form is set to itself, which it should be if you don't give it any parameters. When you click on the "DO" button, it should send a DO parameter to the server with the value of the button.my $cgi = new CGI; # Your old stuff # : print end_form(), hr(); print_content(); print_end_html(); if ($cgi->param('DO')) { write_content(); }
|
|---|