URL redirection

L

Lam

Hi
I have a question on page redirection

A user login from a asp page (p1), it calls another asp page(p2) to do the
validation, after successful
validation, it's forwarded to a welcom page(p3). How can I redirect back to
the orginal page(p1) after certain time?
I used <meta http-equiv="refresh"; Content="3;
URL="<%=Request.ServerVariables("HTTP_REFERRER")%>">
but it seems redirect back to itself again and again.

Thank a lot !
 
L

Lam

but how do I pass the URL from P1 to p2 then p3?
ie. how do I get the URL of p1 in P2? I don't know which page will p1 be

Thanks
 
S

Steven Burn

'// P1
<form action="p2.asp">
<input type="hidden" name="strSomeValue"
value="<%=request.servervariables("REMOTE_ADDR">
</form>

'// P2
strSomeValue = Request.Form("strSomeValue")

Response.Redirect "p3.asp?p2=" & strSomeValue

'// P3
<meta http-equiv="refresh" content="30;url='p1.asp'">

Response.Write "P2 passed the value: <b>" request.querystring("p2") & "</b>"

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top