PDA

View Full Version : [PHP] Including IP Address in mail form



Peter71
September 7th, 2007, 03:05 PM
Hello all,

I would like to submit the IP Address of the person filling out my emaill form along with the other variables. Is there a PHP call that I can insert into the form tag that will collect the IP Address of the client and insert it into the form data?

Something like <input value="IP Address Script" name="ipAddress" /> or something?

Any help would be greatly appreciated.

Danii
September 7th, 2007, 03:08 PM
<input value="<?php echo $_SERVER['REMOTE_ADDR'];?>" name="ipAddress"/>

Peter71
September 7th, 2007, 03:20 PM
Thank you so much! That was like the fastes answer ever! Thanks again and have a great day!