text box with drop down

G

Guest

I have a page with two text boxes and a submit buttion. The two field values
carry over to an asp page when the form is submitted. Works great. How or
is it possible to have the same form with the two text boxes and an add a
drop down menu to it and based on what the user selects, it goes to that
specific asp page?

Does anyone have an example or know how to do this?

Thanks.
 
S

Stefan B Rusynko

You can only have 1 client side form action (the asp page you want to process the form)
But you can on that process page check for the form dropdown value & redirect to another process page

In your form you have a dropdown
<select name "pickone">
<option value="one">Pick 1</option>
<option value="two">Pick 2</option>
</select>

Then in your action page check the form value & redirect if needed
<%
If Request.Form("pickone") = "two" Then
response.redirect "someotherpage.asp"
Else
' do normal processing
End if
%>
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have a page with two text boxes and a submit buttion. The two field values
| carry over to an asp page when the form is submitted. Works great. How or
| is it possible to have the same form with the two text boxes and an add a
| drop down menu to it and based on what the user selects, it goes to that
| specific asp page?
|
| Does anyone have an example or know how to do this?
|
| Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top