No announcement yet.

Capturing visitors IP in BV form

  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:
    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

  • #2
    Re: Capturing visitors IP in BV form

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


    • #3
      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.
      Logger Lite: Low Cost, Customizable, multifeatured Login script
      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart 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
        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.