im trying to get this little box to show what your ip address is for you but i can't get it to work it does....... <form method="post" action="" name="myform"> <input type="text" name="ipaddr" readonly> </form> <? echo 'Your IP address is : '.$_SERVER["REMOTE_ADDR"]; ?>
Make sure your host is PHP enabled first. <?php $ip = $_SERVER['REMOTE_ADDR']; echo "Your IP Address is: ".$ip; ?>