How do I identify where the POST data sent to a PHP script came from?

Posted by Mike Turley on Stack Overflow See other posts from Stack Overflow or by Mike Turley
Published on 2010-05-12T14:22:40Z Indexed on 2010/05/12 14:24 UTC
Read the original article Hit count: 152

Filed under:
|
|
|
|

I have a ton of data collection forms on my website, and I wrote a PHP script to handle all the data. All the forms have that one script as their action, and POST as the method. The handler emails a copy of the data to me, and I'd like for the emails I get to contain the URL of the form where they originated. Is there any way in PHP to get the url of the form which was submitted to the script? Or do I have to add an extra hidden field in every form with its URL?

© Stack Overflow or respective owner

Related posts about php

Related posts about form