-------------------------------------
++ to your comments. You've reiterated and confirmed my impression that what I want to do requires some not-so-elegant code. In particular, I considered using a bit of JS to accomplish this, but I am working toward a 100% server side solution.
You wrote:
What I like to do is name the submit buttons differently, and use the names as values. For example, if you have
and the user clicks on the first "Add" button, you'll get a add1/Add key value pair - you use the name/key as the submit button value and you're set (just make sure your naming scheme won't clobber any of your other form element names).<input type='submit' name='add1' value='Add'> <input type='submit' name='add2' value='Add'>
Previously, I was using "rm" as the name, and the value as the name of the rm (and implicitly the label). I can see now that I can set a hidden var defining the run mode, then read the name/value pair from the submit button to branch to the appropriate actions.
In reply to Re: Re: Re: CGI::Application usage question
by freddo411
in thread CGI::Application usage question
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |