in reply to Calling internal subroutine from a form submit
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |