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

HTML redirect 2

Status
Not open for further replies.

uconn1981

Programmer
Mar 21, 2005
42
US
I have 10 HTML pages, each of which connects to the same ASP page to save data into the database. Then the ASP page redirect back to the HTML page calling it. How can I pass the HTML file name to the ASP file so it can automatically redirect to the HTML page?

Thanks,

Tim
 
HTTP_REFERER can be set to null by some security software, you can't always rely on it. Why not add a hidden field to your forms that your ASP script can read and use to determine where to redirect to:
Code:
<input type="hidden" name="camefrom" value="mypage.htm" />

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top