Redirect user to a different URL

Submitted by:Jhon Smith

Date added:29 December, 2011

Category:ASP

ASP code example to redirect the user to a different URL.

Tags: redirect url

Code Snippet:

<%
if Request.Form("select")<>"" then
Response.Redirect(Request.Form("select"))
end if
%>

<html>
<body>

<form action="test_redirect.asp" method="post">

<input type="radio" name="select"
value="test_server.asp">
Server Example<br />

<input type="radio" name="select"
value="test_text.asp">
Text Example<br /><br />
<input type="submit" value="Go">

</form>

</body>
</html>
 
 

Comments