Topic awaiting preservation: form action (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 12-08-2006 19:40
I have a web page with a form and a select dropdown box with a yes or no value. I want to make the form action go to one of two pages based on what the user selects. I realize I'm probably going to have to submit the form to itself to write the decision but I'm not sure how to make it POST to either page based on the user input after the user submits the form. |
Lunatic (VI) Inmate From: under the bed |
posted 12-08-2006 20:03
couple things - |
Bipolar (III) Inmate From: Uranus |
posted 12-08-2006 22:04
Although I don't see the point in using a form for that either, personally I would just use javascript to redirect the page after an onclick or onselect event. |
Paranoid (IV) Inmate From: Behind the Wheel |
posted 12-08-2006 23:12
i agree, but since this is in server side scripting, i assume that some, errr... server side scripting can be included.. |
Maniac (V) Mad Scientist From: :morF |
posted 12-09-2006 01:06
I'm confused, Lurch... you want to make sure that the page has some link to server-side scripting, just because it's in this forum? I say that DL's solution is the best. It's not like the user can turn off hyperlinking. If you need them to go to one page, or another page, then just give them a pair of links and title one 'yes' and the other 'no'. |