Well I'm using a emailing contact form on a website I'm making.. But I have a problem. It isn't recording the IP, Referrer, or User Agent.
Here is my script:
Code:
<?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 ?>" /> Please let me know what to change to make it work.
This is what is says in the email where it's supposed to give the info:
Quote:
Additional Info : IP = <?php echo $ip; ?>
Browser Info: <?php echo $httpagent; ?>
Referral : <?php echo $httpref; ?>
|