Hi there,
I once seem it on a script, but i lost it. But any way, whats the code to display the IP of the viewer? Also i wish to put it in a text box...
-Neo
[SOLVED] Whats my ip?
Moderator: General Moderators
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
Code: Select all
echo $_SERVER['REMOTE_ADDR'];Code: Select all
$ip = $_SERVER['REMOTE_ADDR'];
echo "<input type="text" name="ip" value="$ip">";