Hello,
I record the time and IP addresses each time a form is submitted, successfully or unsuccessfully. So the database table for form submission consists of ID, DATETIME, and IPADDRESS.
I've been trying to code on limiting the form usage but I've been unsuccessful.
This is what I'm trying to accomplish:
The form can be submitted successfully once per IP address per hour;
and, it can be submitted unsuccessfully thrice per IP address per hour (i.e. 3 failed attempts).
Could anyone please help me with this?
Thanks