Jump to content

jaffy

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jaffy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I am a complete newbie and have a ready made PHP script installed. However one thing it is missing is a way to capture the visitors IP address and storing it in the database when they register. I have found out how to get the visitors IP address with this; [code]<?php $ip = $_SERVER['REMOTE_ADDR']; echo "Your IP address is: $ip"; [/code] I have a redundant field on the register page which is used to enter a website, so I wish to simply use this field to automatically enter the visitors IP adress So my question is, how do I get the $ip variable into the value field of an input field like this one; [code]<input type="text" name="IP Adress" value="{m_website}">[/code] Thanks for any help
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.