in reply to [Solved]: How to perform different actions before and after submit button is clicked.
Then you can see if it was clicked:<input type="submit" name="button1" value="Submit" />
print '<html><head><title>Test</title></head><body>'; if ( $query->param('button1') ) { print 'Thank you - your form was submitted correctly!'; } else { print '<form method="post"><input type="submit" name="button1" val +ue="Submit"></form>'; } print '</body></html>';
|
|---|