AshleyQuick
04-09-2004, 05: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, 05:36 PM
That's because it's $_SERVER['HTTP_REFERER']
AshleyQuick
04-09-2004, 05: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, 06:29 PM
$emailmessage = "Hello,\n\r[name] thought you would like to visit the following page: ".$referrer."\n\n[url]"; // Message in email body.