Forum Moderators: open

Message Too Old, No Replies

help with (HTTP_REFERER)

Using CDO

         

dross

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?

Thanks
David

TheNige

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.

fabfurs

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?

dross

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
David

mattglet

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...

window.open('mail.asp?r=<%=Server.URLEncode(Request.ServerVariables("HTTP_REFERER"))%>');

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

<%
strReferer = Request.QueryString("r")

%>

You will now have the value available on mail.asp

dross

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

10+ Year Member



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

-David