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

redirect asp page to html form

Status
Not open for further replies.

KayKay

MIS
Jan 11, 2001
15
US
using fp2003.

I have dataform.asp secured so that if clicked the user is prompted to login.asp. Once logged in, I would like to direct them to the dataform.htm form page to fill in the information.

Can anyone tell me how to redirect them to the dataform.htm page after they successfully log in. this is the script now that keeps taking them to the dataform.asp page.

"&Request.Servervariables("URL")&"?"&Request.Servervariables("QUERY_STRING")

Please help!
Karen
 

in the area of code that runs when the login is succesful, add:

response.redirect ("dataform.htm")
(assuming dataform.htm is in the same directory as login.asp)

or replace Request.ServerVariables("URL") with your own literal URL.



A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top