Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

help with (HTTP_REFERER)

Using CDO



3:12 am on Apr 20, 2005 (gmt 0)

10+ Year Member

HI, I have a link on my website. When the user clicks the link, a small asp form(mail.asp) pops up that they fill out. I am trying to get http_referers to work. The best that I can do so far, is that the recipient gets an email reading. Please check out www.site.com/mail.asp. The referer is picking up the last page as the email form itself, and not the previous page.

Anyone have any idea on how this may be done correctly?



3:31 am on Apr 20, 2005 (gmt 0)

10+ Year Member

I'm not entirely sure, but how are you opening your pop-up window? If you are using jscript it may not have a referrer property since it is esentially a new window...just a guess.


11:35 am on Apr 20, 2005 (gmt 0)

10+ Year Member

Have you considered changing the link to a button on a form using either GET or POST and passing the current form name to the mail.asp form via the request.querystring?


1:27 pm on Apr 20, 2005 (gmt 0)

10+ Year Member

Thanks for the replies. I guess I am open to options that will allow this to work.

As far as the form button. Any online links that explain this further?

Thanks Again


4:06 pm on Apr 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

I'm assuming you're using javascript's window.open object to pop up the window...


On your mail.asp page, you can do this:

strReferer = Request.QueryString("r")


You will now have the value available on mail.asp


5:02 pm on Apr 20, 2005 (gmt 0)

10+ Year Member

Thanks Very Much. I will try this later this evening.



Featured Threads

Hot Threads This Week

Hot Threads This Month