Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
03-03-2008, 03:20 AM #1
Form on a timer that cant be submitted more than once within the hour .. HOW? help
hey im creating an app that maybe open to abuse on a comment form, im wanting to restrict the number of times the form is submited within an hour to say 3 times by a user.
any one know any thing about this sorta thing, any eamples , places to start, tutorials, code ... i just dont know where to start with a form like that
Last edited by maxvee8; 03-03-2008 at 03:44 AM.
03-03-2008, 04:17 AM #2
- Join Date
- Jun 2003
- Cottage Grove, Minnesota
- Thanked 1,095 Times in 1,086 Posts
Use Google to search for: PHP cookie tutorial
and check the cookie to see if it's there (if it exists).
If not, it means they have cookies disabled, so you will
not accept the comment. If you see the cookie,
then check the value and see if the time has elapsed.
Check it each time they refresh or revisit the page.
When it has elapsed, reset cookie value with a new time.
Note, you can also set and check the same cookie(s) using
a running timer that shows the user how much longer they
need to wait until the next allowable comment.
Users who have thanked mlseim for this post:
03-03-2008, 12:45 PM #3
ok cool thanks aill have a look in to it good starting point , cause i had no idea what i was looking for ,lol