...

View Full Version : pass a url in a recommend script using $HTTP_REFERER



AshleyQuick
04-09-2004, 06:30 PM
I'm trying to pass a url in a recommend script using $HTTP_REFERER This isn't working:


$referrer = $HTTP_REFERER;


$emailmessage = "Hello,\n\r[name] thought you would like to visit the following page: [referrer]

Nightfire
04-09-2004, 06:36 PM
That's because it's $_SERVER['HTTP_REFERER']

AshleyQuick
04-09-2004, 06:46 PM
Hmm, here's how it's coming through in the email:

Hello,

Ashley thought you would like to visit the following page: [referrer]

Here's what I'm using:


$referrer = $_SERVER['HTTP_REFERER'];

$webmasterEmail = 'test@xyz.net'; // Your email address.

$emailsubject = 'Website Recommendation from [name] ([email])'; //Email subject line.

$emailmessage = "Hello,\n\r[name] thought you would like to visit the following page: [referrer]\n\n[url]"; // Message in email body.

Nightfire
04-09-2004, 07:29 PM
$emailmessage = "Hello,\n\r[name] thought you would like to visit the following page: ".$referrer."\n\n[url]"; // Message in email body.

AshleyQuick
04-09-2004, 08:58 PM
Works, thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum