$_SERVER['REMOTE_ADDR'] will contain the remote user's IP address IF it is set by the user agent (browser).
It's also worth noting that this IP address could be faked, could be rotated by their ISP on a request-by-request basis (eg all AOL users), could be that of their firewall or network gateway, etc etc. It's fine to log it, but don't rely on it for future visits, or anything like that :) Justin on 28/03/03 5:04 AM, Joakim Larsson ([EMAIL PROTECTED]) wrote: > Hello, > > Is there a command in php that would logg the ip address of the user viewing > the php file. > I need someway of finding out who posted the form. > > thanx > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php