Two options that come to mind quickly:1) Make your submit buttons the runmode indicator. Given your 'rm' parameter name:
<input type="submit" name="rm" value="RunmodeA" /> <input type="submit" name="rm" value="RunmodeB" />2) Use JavaScript to manipulate the 'rm' hidden parameter before form submission.
We discussed this on perlmonks.org before, too: http://perlmonks.org/?node_id=411760 - Jason Prakash Inuganti (pinugant) wrote:
Hi, I am only couple of days old to using CGI::Application. If my form has 2 submit buttons and on click each should call a different run_mode, how do I handle that?. I can give one hidden field with name='rm', what do I do with the second one? Any help is appreciated.Thanks Prakash
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.