Results 1 to 5 of 5
Thread: Order form that tracks IPs?
-
06-20-2002, 02:57 AM #1WHT Addict
- Join Date
- May 2001
- Posts
- 167
Order form that tracks IPs?
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?
-
06-20-2002, 04:36 AM #2Web Hosting Evangelist
- Join Date
- Dec 2001
- Location
- Arizona
- Posts
- 460
I would check out www.hotscripts.com
-
06-20-2002, 07:34 AM #3Aspiring Evangelist
- Join Date
- Jan 2002
- Posts
- 362
$REMOTE_ADDR is the pre-defined PHP variable for the IP address of the person viewing any given page.
-
06-20-2002, 08:14 AM #4Web Hosting Master
- Join Date
- Feb 2002
- Posts
- 771
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
-
06-20-2002, 08:26 AM #5Web Hosting Evangelist
- Join Date
- May 2002
- Location
- Durham - UK
- Posts
- 450
Hi
This is how to grab the IP address of someone ordering:
PHP Code:<?
$ip = getenv("REMOTE_ADDR");
?>
<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 helpsBarry
UK Based Freelance PHP Developer
PHP/SQL/Ajax/HTML5 - Contact for Quote