Xoom3r Posted April 13, 2010 Share Posted April 13, 2010 Well, I have no idea how it's called.. but I want that a specific form will be unavailable for use after used one time. if it's not clear enough: when somebody uses a form, after that one time, he can't use the form for like, 10 minutes.. How can I do that? (I tried to google it, but I have no idea how it's called). Link to comment https://forums.phpfreaks.com/topic/198369-form-cooldown/ Share on other sites More sharing options...
Pikachu2000 Posted April 13, 2010 Share Posted April 13, 2010 Set a cookie that expires ten minutes after form submission. Check for that cookie's value when the script loads. Link to comment https://forums.phpfreaks.com/topic/198369-form-cooldown/#findComment-1040888 Share on other sites More sharing options...
Xoom3r Posted April 13, 2010 Author Share Posted April 13, 2010 May I ask for an example? Link to comment https://forums.phpfreaks.com/topic/198369-form-cooldown/#findComment-1040929 Share on other sites More sharing options...
Ken2k7 Posted April 13, 2010 Share Posted April 13, 2010 Best to store the user's IP address in the database along with a timestamp on when they last used the form. Then check for it upon page load. Safer than cookies because they can always clear the cookies. And sessions are gone once the browser is closed. Link to comment https://forums.phpfreaks.com/topic/198369-form-cooldown/#findComment-1040948 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.