Request.ServerVariables("HTTP_REFERER")

F

F@yy@Z

Hi All

I am using Request.ServerVariables("HTTP_REFERER") to refer back in some
pages but on clint side some pages refered back and some show error page not
found.

I dont know whats wrong with code.

retstr = Request.ServerVariables("HTTP_REFERER")
if instr(1,ucase(retstr),"STEPPAGE") > 0 then
returl="wm_steppage.asp?step=2"
else
returl="wm_mainpage.asp?step=2"
end if

Response.Redirect(returl)


Any one got any idea why its like this


Kind regards

Fayayz
 
K

Ken Schaefer

First, work out where you are being redirected to (eg check IIS logs, or
write some kind of debugging information to a database)>

Then on wm_steppage.asp or wm_mainpage.asp do you do any further redirects?
Maybe you're redirecting to a non-existant page?

Cheers
Ken

: Hi All
:
: I am using Request.ServerVariables("HTTP_REFERER") to refer back in some
: pages but on clint side some pages refered back and some show error page
not
: found.
:
: I dont know whats wrong with code.
:
: retstr = Request.ServerVariables("HTTP_REFERER")
: if instr(1,ucase(retstr),"STEPPAGE") > 0 then
: returl="wm_steppage.asp?step=2"
: else
: returl="wm_mainpage.asp?step=2"
: end if
:
: Response.Redirect(returl)
:
:
: Any one got any idea why its like this
:
:
: Kind regards
:
: Fayayz
:
:
 
A

aa

When it throws "not found" it usually indicates the filename and the path
it is looking for - do these match the name and the path of the file you
want to redirect to?
 

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,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top