Results 1 to 5 of 5
  1. #1
    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?

  2. #2
    Join Date
    Dec 2001
    Location
    Arizona
    Posts
    460
    I would check out www.hotscripts.com

  3. #3
    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.

  4. #4
    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

  5. #5
    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");
    ?>
    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
    Barry
    UK Based Freelance PHP Developer
    PHP/SQL/Ajax/HTML5 - Contact for Quote

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •