I pretty much agree with ikegami, but I can imagine what you're looking for.
Use a hidden input field to let your script know to process the form. Then you can check for the CGI parameter with your script. If it's there, execute your subroutine...
use strict; use warnings; #... my $cgi = new CGI; if ( $cgi->param('runsub') ) { run_subroutine( $cgi ); }
-- -- GhodMode
In reply to Re: Calling internal subroutine from a form submit
by GhodMode
in thread Calling internal subroutine from a form submit
by colinb444
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |