Very simple form email. When we receive it, we would like to show the ip address of the sender, to keep for our records. The above is not working, it show's our ip address instead of the sender. How do I fix this? It's on a secure https, it make a difference?
If you are testing it yourself, then it will, of course, show your IP address.
Make sure that you are using this within a script that is being requested by the client (user's browser) and not a script being initiated by the server.
$_SERVER['REMOTE_ADDR'] is the IP address of the entity running the script.
Last edited by TechEvangelist; 01-27-2008 at 08:53 AM.
Bookmarks