homepage Welcome to WebmasterWorld Guest from 54.227.77.237
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
dross




msg:942544
 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?

Thanks
David

 

TheNige




msg:942545
 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.

fabfurs




msg:942546
 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?

dross




msg:942547
 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
David

mattglet




msg:942548
 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...

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




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

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

-David

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