Possible Duplicate:
How do I find a user's IP address with PHP?
I have a form in my PHP page. Users fills in his credentials and the message and presses send. I get his question through email and can answer him.
But I would also like to add the public IP of the person to the email, is this possible?
Many thanks!
Try using
$_SERVER['REMOTE_ADDR']to fetch the user’s IP address.http://php.net/manual/en/reserved.variables.server.php