I have a contact form that I created in the form generator.
For some reason after submitting a message through the form the POST data seems to 'persist'.
For example, i'll submit the form and see the redirect page. From that point on every time I click on a new page the data from my contact form is re-posted, or at least the POST values are set. For some reason Contao is remembering the POST data and setting it on every request.
I know this because I have a custom form on another page, when I visited this page it automatically submitted because it was looking for '$this->Input->post('FORM_SUBMIT')', which was present but should not have been. I am also able to view all the other data posted from my contact form on any page by doing this:
Code:
echo $this->Input->post('name');
echo $this->Input->post('email');
This has even persisted over night, I was testing the contact form yesterday and it was only when I loaded up the site this morning I realised this was happening. How is Contao even 'remembering' the POST data, and where is is being set?!
Any ideas what is going on here?! I'm using Contao 3.0.6.
Thanks
Bookmarks