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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/174044-timestamp-and-submit-button/#findComment-917452 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.