track referer and pass value to asp send email page

This is a discussion on "track referer and pass value to asp send email page" within the Classic ASP section. This forum, and the thread "track referer and pass value to asp send email page are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 6th, 2005, 10:58
New Member
Join Date: Dec 2005
Location: manchester
Age: 36
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
track referer and pass value to asp send email page

Hi,

I hope someone can help! I am primarily just an html coder and desperately need some help. I need to track just the url of any referring site to my own and then include it in a seperate "send email" asp page. I have tried using php but frontpage doesn't seem to be very php friendly. I've been trying to figure this out for 2 or 3 days and I am ready to tear my hair out so any help would be greatly appreciated!
regards,
paul
Reply With Quote

  #2 (permalink)  
Old Dec 6th, 2005, 11:37
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: track referer and pass value to asp send email page

Can you please give a break down of the process involved here....

What is the purpose... what is the click path of the user and at what point is an email sent.

This info will help us direct you.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #3 (permalink)  
Old Dec 6th, 2005, 12:14
New Member
Join Date: Dec 2005
Location: manchester
Age: 36
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: track referer and pass value to asp send email page

thanks for getting back to me so quickly!
I am trying to set up a very simple affiliate program. The client would click on a link to our website and usually they read some info on other pages on the site first before submitting an apllication. When they submit a query (on a asp page) it sends an email to me and to the client. When this application is made i need to know which website they came from originally. hope this clarifies things. sorry for being so vague before.
regards,
paul
Reply With Quote
  #4 (permalink)  
Old Dec 6th, 2005, 12:49
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: track referer and pass value to asp send email page

ok....

Here's a way.

Check for the existance of a cookie called "Strreferer" (The cookie name isnt important)

If the cookie exists, do nothing.
If it doesnt, then store the referer in there:
Response.Cookies("strReferer") = Request.Servervariables("HTTP_REFERER")

When you fire over your email, just grab the referer from the cookie.

Obviously this relies on cookies..... but so does session variables. The only other way is to append the referer in a querystring on each and every internal link you have.... which is not really practical, but would be the only cookie-less solution.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
Reply

Tags
track, referer, pass, value, asp, send, email, page

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send email to user? LegolasV JavaScript Forum 1 Jun 5th, 2008 09:16
Please help me send an Email template. Oak Web Page Design 5 May 20th, 2008 07:37
PHP Form send in email Bravo81 PHP Forum 20 Jan 17th, 2008 11:47
Form won't send to email? Inkers Web Page Design 3 Jan 22nd, 2007 16:11
how to send email in php manzil PHP Forum 1 Jul 30th, 2006 16:34


All times are GMT. The time now is 00:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43