ok guys,
for the life of me I can’t get this. here is my code:
$product_page = $_SERVER[‘HTTP_REFERER’];
$demo_requested = “”;
if($product_page = ‘…\reghh.php’) {
$demo_requested = “Home Health Edition”; }
else if($product_page = ‘…\regsnf.php’) {
$demo_requested = “Skilled Nursing Edition”; }
else {
$demo_requested = “Assisted Living Edition”; }
what I get in my email message, regardless of the page where the form is submitted is: Home Health Edition
I have tried almost everything I can think of as far as modifying the $product_page = ‘…\PAGE.php’ code, but i still get the same damn demo requested in the email message. if I run the following code on the page:
$product_page = $_SERVER[‘HTTP_REFERER’];
echo “< script >alert(’$product_page’);< /script >”;
I get this in the alert window:
http://www.domain.com/reggrp.php, which of course should give me a different result as I’m getting in the email. I’ve tried putting that into the if else() arguments too and I get the same thing…always the same value for **$demo_requested **. can someone spot the error? (for some reason the forum software is adding an extra “.” in those directory pointers. there are only 2 in the script).