I am needing some help, in 2013 I created a website with an enquire form, sadly, recently ‘someone’ discovered by going backward and forwards in the browser he could just simple press the send button again and in that way send many emails with spam messages in it. Very annoying it is, I have added the visitor IP in the form and email being send to block the IP in question in the firewall, but it would be much better to reset the fields to empty if the form is sent, is there any easy way to do this? with easy I mean just add one row of code to the form.
My cakePHP version is 2.8.1
Any help much appreciated.