PDA

View Full Version : Submitting Forms To Multiple URLS


Thatguy2001au
06-16-2003, 12:05 PM
Hey there

I have a form with a combo box with three choices. Depending on what the user selects from the combo box, i want to submit the form to a certain url. I am not sure if this is the right place to be asking the question, but my pages are in asp.

any ideas on how i can do this???

Any help would be greatly appreciated.

raf
06-16-2003, 12:42 PM
just post the form to an asp, where you redirect based on the value that was selected. say your dropdown has name="url" and the options have value 1,2,3. Then you just post the form to an asp like action="redirect.asp"

On top of redirect.asp you have something like

select case request.form("url")
case "1"
response.redirect("page1.asp")
case "2"
response.redirect("error.asp")
... other possible values from the dropdown
case else
response.write("Your not accessing this page correctly")
end select