473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

URL redirection

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 !

Jul 22 '05 #1
4 1280
You will have to pass the page along from p1 to p2 to p3, in a hidden form
value or querystring value

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Lam" <ja**********@hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP11.phx.gbl...
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 !

Jul 22 '05 #2
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

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:#o*************@TK2MSFTNGP12.phx.gbl...
You will have to pass the page along from p1 to p2 to p3, in a hidden form
value or querystring value

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Lam" <ja**********@hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP11.phx.gbl...
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 !


Jul 22 '05 #3
as I said.... hidden form field or querystring

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Lam" <ja**********@hotmail.com> wrote in message
news:e8**************@TK2MSFTNGP15.phx.gbl...
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

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:#o*************@TK2MSFTNGP12.phx.gbl...
You will have to pass the page along from p1 to p2 to p3, in a hidden
form
value or querystring value

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Lam" <ja**********@hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP11.phx.gbl...
> 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 !
>
>
>



Jul 22 '05 #4
'// 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!
"Lam" <ja**********@hotmail.com> wrote in message
news:e8**************@TK2MSFTNGP15.phx.gbl...
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

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:#o*************@TK2MSFTNGP12.phx.gbl...
You will have to pass the page along from p1 to p2 to p3, in a hidden form
value or querystring value

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Lam" <ja**********@hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP11.phx.gbl...
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 !



Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
52
by: Gerard M Foley | last post by:
Can one write a webpage which is not displayed but which simply redirects the user to another page without any action by the user? Sorry if this is simple, but I am sometimes simple myself. ...
15
by: Taki Jeden | last post by:
Hello everybody Does anybody know why w3c validator can not get pages that use 404 htaccess redirection? I set up two web sites so that clients request non-existent urls, but htaccess redirects...
2
by: Nadav | last post by:
Hi, Introduction: *************** I am trying to redirect stdout to a RichEdit control, this is done by initiating a StringWriter, associated it with a StringBuilder and setting the...
0
by: Dimitrios Mpougas | last post by:
Hello, I have two asp.net pages. The first is a page (main.aspx) wich has four links on it. The href value of each link is: href="view.aspx?id=1" traget="_blank" href="view.aspx?id=2"...
8
by: Luciano A. Ferrer | last post by:
Hi! I was following the http://www.seomoz.org/articles/301-redirects.php article, trying to do that with one of my test sites I added this to the .htaccess file: RewriteEngine On RewriteCond...
13
by: souissipro | last post by:
Hi, I have written a C program that does some of the functionalities mentionned in my previous topic posted some days ago. This shell should: 1- execute input commands from standard input,...
1
by: comp.lang.php | last post by:
require_once("/users/ppowell/web/php_global_vars.php"); if ($_GET) { // INITIALIZE VARS $fileID = @fopen("$userPath/xml/redirect.xml", 'r'); $stuff = @fread($fileID,...
4
by: psual | last post by:
hi newbie in web design I got some issue concerning a secure redirection between 2 pages let say I have a page with a grid (the 'master' page) in this grid I can select a record, get its pk...
13
by: Massimo Fabbri | last post by:
Maybe it's a little OT, but I'll give it try anyway.... I was asked to maintain and further develop an already existing small company's web site. I know the golden rule of "eternal" URIs, but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.