in reply to Pass the Subroutine Name in form action value
There is probably a more elegant way to do this, but you could do:
$query->startform(-method=>'POST', -action=>"newcgi.cgi?foo=report");
And then in newcgi.cgi, you have...
report() if param('foo') eq 'report';
Or something along similar lines.
Cheers,
Darren :)
|
---|
In Section
Seekers of Perl Wisdom