MDanz Posted September 13, 2009 Share Posted September 13, 2009 for every user entry there is a timestamp for when it was entered. how do if i the timestamp compared to the current time is less than 30 seconds the submit button is disabled? Link to comment https://forums.phpfreaks.com/topic/174044-timestamp-and-submit-button/ Share on other sites More sharing options...
sKunKbad Posted September 13, 2009 Share Posted September 13, 2009 Use a form token. Generate a random string with php, add this to a hidden form field, and add this also to a session key. When the form is submitted, check the hidden form field against the session key. Link to comment https://forums.phpfreaks.com/topic/174044-timestamp-and-submit-button/#findComment-917452 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.