+ Reply to Thread
Results 1 to 4 of 4

Thread: Capturing visitors IP in BV form
      
   

  1. #1
    seeya98 is offline Private First Class
    Join Date
    Oct 2008
    Posts
    5

    Question Capturing visitors IP in BV form

    Want to add to my bv php form a script which will display visitor`s IP address on the page, or possibly even better - email it to me when the form is submitted. Somewhere found this code:
    $ip=@$REMOTE_ADDR;
    echo "<b>IP Address= $ip</b>";

    But have no idea how to insert it into the page so that user will read something like this:
    You are submitting this form from IP xxx.xx.xxx.xxx

  2. #2
    seeya98 is offline Private First Class
    Join Date
    Oct 2008
    Posts
    5

    Default Re: Capturing visitors IP in BV form

    All right, just found something new. Inserted HTML object in the form with the following code:
    <?php
    echo "Your IP Address is $_SERVER[REMOTE_ADDR]";
    ?>
    Displays this message on the form:
    Your IP Address is 173.3.xxx.x
    Half is done. Now I will appreciate any ideas how to email it to me along with information submited with my form.

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,052

    Default Re: Capturing visitors IP in BV form

    If you want the IP address to be included in the form email, add a hidden field in your form. Name it "IP address" and give it the value: <? echo $_SERVER['REMOTE_ADDR'];?>

    To display the IP address on the page:

    Insert the following text in your page:

    Your IP Address is '.$_SERVER['REMOTE_ADDR'].'

    Right Click it, select HTML, and paste the following codes:

    in the Before Tag:

    <? echo'


    and in the After Tag

    ';
    ?>

    You can format the text as you like, as you would normally do with any other text.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  4. #4
    seeya98 is offline Private First Class
    Join Date
    Oct 2008
    Posts
    5

    Default Re: Capturing visitors IP in BV form

    That was very easy to do. Sure many users will find it usefull. And it works right away, I am new to all this - and took me 15 seconds to set it up. Thank you for help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49