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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

needed direct page using database list

Status
Not open for further replies.

J304

Programmer
Jan 30, 2003
8
GB
i need to direct to a page from a database list depeneding on the id number entered into a form. can someone help
 
<%

set objRS = objCN.execute(&quot;SELECT idNum FROM myTable WHERE fieldName = '&quot; & request(&quot;formField&quot;) & &quot;'&quot;)


if not objrs.eof
select case objRS(&quot;idNum&quot;)
case 1
response.redirect &quot;Page1.asp&quot;
case 2,3
response.redirect &quot;page4.asp&quot;
case else
response.write &quot;Not found&quot;
end select
else
response.write &quot;Not found&quot;
end if

%>

Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048

mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top