It works, but the one problem I can't figure out is how to fix the way the url displays in the email message. Instead of being http://www.website.com/page, it displays: http://www.website.comhttp://www.website.com/page/
I'm assuming it has something to do with this code:
Code: Select all
$pageURL = "\r\n\r\nhttp";
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["HTTP_REFERER"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["HTTP_REFERER"];
}Can someone please help?
Thanks!


