# \[PHP\] Including IP Address in mail form

**URL:** <https://forum.kirupa.com/t/php-including-ip-address-in-mail-form/238155>\
**Category:** programming\
**Created:** [September 7, 2007, 6:05pm UTC](https://forum.kirupa.com/t/php-including-ip-address-in-mail-form/238155 "2007-09-07T18:05:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter71](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@Peter71](https://forum.kirupa.com/u/Peter71)\
**Post date:** [September 7, 2007, 6:05pm UTC](https://forum.kirupa.com/t/php-including-ip-address-in-mail-form/238155/1 "2007-09-07T18:05:13Z")

</div>

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.
