Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirecting a user based on combo-box selection

Status
Not open for further replies.

CMM

Technical User
Sep 18, 2000
1
US
i have a combo-box which displays a list of skills. however, if i wish to add another skill, i have an option in the combo-box "Add a Skill". how do i redirect the user to the "add" page if they choose this option? Here's my (very incorrect!)code:

<SELECT NAME=&quot;Skills&quot;>

<%
Do While Not RS.EOF
Response.Write &quot;<OPTION VALUE='&quot; & RS(&quot;Skill&quot;) & &quot;'>&quot;
Response.Write RS(&quot;Skill&quot;)
RS.MoveNext
Loop

If (Request(&quot;Skills&quot;) = &quot;Add a Skill&quot;) Then
%>
<FORM METHOD=POST ACTION=&quot;add2.asp&quot;>
<INPUT TYPE=&quot;submit&quot; name=&quot;btnAdd&quot; value=&quot;Add&quot;
</FORM>
RS.Close
objConn.Close
Set RS = Nothing
Set objConn = Nothing
<%
Else

%></SELECT><%
.....further code.....

thank you!:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top