homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

help with (HTTP_REFERER)
Using CDO

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

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)

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)

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)

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)

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)

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


Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved