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