throop has asked for the wisdom of the Perl Monks concerning the following question:
| Color: | <input type="radio" name='color' value="Red" /> Red | <input type="radio" name='color' value="Blue" /> Blue |
|---|---|---|
| Action: | <input type="submit" name='paint' value="Paint"/> | <input type="submit" name='crayon' value="Crayon"/> |
I want the Paint button to POST the color to paint.cgi and the Crayon button to POST the color to crayon.cgi.
But the 'action' of the CGI::form call determines where the SUBMIT buttons lead to. Can I have multiple destinations within a single form? If I go to two forms in the page, can they somehow both have access to the 'color' param?
throop
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POSTing off to different pages in CGI module
by merlyn (Sage) on Sep 11, 2007 at 15:39 UTC | |
by throop (Chaplain) on Sep 11, 2007 at 16:06 UTC | |
|
Re: POSTing off to different pages in CGI module
by ww (Archbishop) on Sep 11, 2007 at 15:36 UTC | |
|
Re: POSTing off to different pages in CGI module
by naikonta (Curate) on Sep 12, 2007 at 01:38 UTC |