Unanswered: How to email IP and browser type on page load
Hi all i am kind of new to php. I wonder how i can email user ip address and browser type on page load. What i mean is once a page loaded on visitor browser it sends me the administrator of a site an email with ip address of visitor and browser type . I be happy if an expert help me achiving this task.Thanks
I've never done this before, but a good first step would be to check out the mail functions and get everything on your system set up correctly to send emails.
After that it should be as easy as plugging in a few strings. I believe $_SERVER['REMOTE_ADDR'] gets the ip address and $_SERVER['HTTP_USER_AGENT'] or get_browser() will return the client info. There's tons of classes already created out there if you google for them.