# PHP Form Mailer -- Grab URL

**URL:** <https://forum.kirupa.com/t/php-form-mailer-grab-url/252415>\
**Category:** programming\
**Created:** [February 19, 2008, 10:50pm UTC](https://forum.kirupa.com/t/php-form-mailer-grab-url/252415 "2008-02-19T22:50:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thunsberger](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@thunsberger](https://forum.kirupa.com/u/thunsberger)\
**Post date:** [February 19, 2008, 10:50pm UTC](https://forum.kirupa.com/t/php-form-mailer-grab-url/252415/1 "2008-02-19T22:50:41Z")

</div>

I am using the PHP form mailer code: [http://www.kirupa.com/web/form\_mailer.htm](http://www.kirupa.com/web/form_mailer.htm), It works great! But what I would like to do is grab the url of the page they are filling out the form on. My reason is that I want to put the form on the bottom of each page as a “report content error” So it would be great if the form mailer could include the page url as a hidden element in the e-mail that is sent to me so i know what page is in dispute. Anyone know how to do this???

- Thanks!
