freeva
06-20-2002, 02:57 AM
Does anyone that any order form script that will track IPs. That is show customers' IP when they are about to order a service and also collect their IP after order has been submitted??
Or alternatively, can someone tell me the html code or php code for such IP tracking thing?
Maniac
06-20-2002, 04:36 AM
I would check out www.hotscripts.com
$REMOTE_ADDR is the pre-defined PHP variable for the IP address of the person viewing any given page.
GWDGuy
06-20-2002, 08:14 AM
What kind of order form are you using? Straight HTML? If so go to www.boaddrink.com and grab their free phpformail and add the $remote_addr like Hostit mentioned. This script will email all the form info very nice and neat along with the IP address. We saved ourself 4 fraud sign ups last week. The credit card information was from here in the US but all the IP's were Indonesia. If the IP does not match the address area we don't accept it. :)
Robert
barrywien
06-20-2002, 08:26 AM
Hi
This is how to grab the IP address of someone ordering:
<?
$ip = getenv("REMOTE_ADDR");
?>
Then in your HTML page insert a hidden field and include the following:
<input type="hidden" name="IP" value="<?php echo $ip?>">
Or if your using PHP Mail() just use $ip inside the body of the email.
Hope that helps