<?PHP $ip = $_SERVER['REMOTE_ADDR']; echo"<input id=\"input\" name=\"ip\" value=\" $ip \" size=\"20\" type=\"text\">"; ?>