HELP! -- previous page in VB and ASP 3.0

S

segis bata

Hello all,

I'm writing you because I have a question for you all: how can I capture the
previous page from an ASP file?

I need to add the URL (with parameters if possible) of the previous page to
a table in SQL Server.

For example: the page that captures the info is anydomain.com/asppage.asp
and if the previous page in the browser history is
otherdomain.com/otherpage.asp, I need to be able to capture that information

If possible, of course...

Thanks in advance for your help and prompt response,
SB-R
 
D

daddywhite

Hello all,

I'm writing you because I have a question for you all: how can I capture the
previous page from an ASP file?

I need to add the URL (with parameters if possible) of the previous page to
a table in SQL Server.

For example: the page that captures the info is anydomain.com/asppage.asp
and if the previous page in the browser history is
otherdomain.com/otherpage.asp, I need to be able to capture that information

If possible, of course...

Thanks in advance for your help and prompt response,
SB-R

You can use Request.ServerVariables("HTTP_REFERER") to capture what
page sent you to the current page.

is this what you need?

regards
dave
 
S

segis bata

Hello Dave,

That variable doesn't return any values

BTW, I'm using Win2003 SP1 IIS 6.0
 
D

Daniel Crichton

It will contain data if the browser sends it - this is done is the browser
follows a link to your page so long as intervening software doesn't strip it
out. If someone just types your page URL into their browser then you can't
obtain the value of the previous URL (at least as far as I know, although it
may be possible with some client side scripting but would require user
intervention, if it was automatic then it'd be a security risk to the
browser.

Dan

segis wrote on Mon, 24 Sep 2007 17:23:07 -0400:
Hello Dave,
That variable doesn't return any values
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,823
Latest member
Nadia88

Latest Threads

Top