This might have already been answered before, but I haven't found any answer to my problem.
If i have a form like the following one in more than 1 page and when I click on the submit button, I want to know what page it was sent from without having to manually write an <input type=hidden>
to store the page's name as a value and then retrieve it with a $_POST
.
<form action="newsletterInsert" method="post" accept-charset="utf-8">
<input type="text"><input type="submit" name="newsletterEmail" value="Subscribe">
</form>