I have thsi script and I am trying to pass the variables to a form ... and have it email them but for some reason its not working ... can anyone offer a reason why it might not be or what I might do to fix it ?
This is the form part
<form method="post" action="sendmail.php">
<!-- DO NOT change ANY of the php sections -->
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>
<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
and this is the part of the sendmail script that sends it is a mail ...
$todayis = date("l, F j, Y, g:i a") ;
$subject = $attn;
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n
Message: $notes \n
From: $visitor ($visitormail)\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
";
but instead of getting the ip and browser info and the referrer ... all I get is this
Additional Info : IP = <?php echo $ipi ?>
Browser Info: <?php echo $httpagenti ?>
Referral : <?php echo $httprefi ?>
instead of the actual output ? am I missing something ?
Anyone ? thanks for your input / help