To: <suppressed> Sent: Tuesday, May 31, 2005 8:54 AM Subject: [cgiapp] calling run_mode if form has 2 submit buttons
Hi, I am only couple of days old to using CGI::Application. If my form has 2submit 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 withthe second one? Any help is appreciated. Thanks Prakash
How ugly might this be?
sub run_mode {
if ($selection eq "Button One") {
$do_this_stuff;
}
if ($selection eq "Button Two") {
$do_this_other_stuff;
}
}
--Jon
---------------------------------------------------------------------
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.