Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Mixing POST and GET with CGI::Applicationby jaldhar (Vicar) |
on Mar 07, 2009 at 09:32 UTC ( [id://749029]=note: print w/replies, xml ) | Need Help?? |
CGI::Application uses CGI.pm behind the scenes so if you don't find something in the docs look there as well. In particular I think the section on MIXING POST AND URL PARAMETERS is what you need. Based on that information, you can write a function like this:
Actually thats kind of overkill. A simpler solution would be to remove rm=mode2 from the forms action and include a hidden field called 'rm' with value 'mode2' in the form body instead. Also for debugging look into CGI::Application::Plugin::DebugScreen and CGI::Application::Plugin::DevPopup. --
In Section
Seekers of Perl Wisdom
|
|