matthew1 Posted October 2, 2007 Share Posted October 2, 2007 I would like to set it up so that my feedback form does not allow a certain IP to send the form more than once over a five minute period. Would anyone here have an idea how to do about that? Link to comment https://forums.phpfreaks.com/topic/71588-feedback-form-timer-question/ Share on other sites More sharing options...
MadTechie Posted October 2, 2007 Share Posted October 2, 2007 MySQL database, Fields IP, TimeStamp when form sent, log the IP and timestamp, just check with that before processing the form! Link to comment https://forums.phpfreaks.com/topic/71588-feedback-form-timer-question/#findComment-360401 Share on other sites More sharing options...
MmmVomit Posted October 2, 2007 Share Posted October 2, 2007 You have a table that contains IP addresses and the amount of time those addresses are required to wait, and the last time they submitted something Each time the page loads you store the current time in a variable. If the current time minus the last submission time is less than the required wait time, the submission fails. Link to comment https://forums.phpfreaks.com/topic/71588-feedback-form-timer-question/#findComment-360403 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.