Orionsbelter Posted March 8, 2009 Share Posted March 8, 2009 Ok first i now hate IE how can i stop people on my website clicking submit buttons so it enters the data into the database lots of times for example someone clicks submit to get a hello message on there account after that they can't get another one but they click submit lots of times to get 100 messages it only happens in IE how can i stop this? Quote Link to comment Share on other sites More sharing options...
DjMikeS Posted March 8, 2009 Share Posted March 8, 2009 First, our eyes are fine so there is really no need for the capital letters and exclamation marks. Second, you could build a timeout function. Put an extra field in your db with name last_submit or something like that. When a user clicks submit, enter the timestamp into this field. Next, when a user clicks submit again, you compare the current time against the timestamp in the last_submit field and if the difference is less then say 5 minutes, you disregard the submit action and tell the user that they can only press submit once every 5 minutes. Quote Link to comment 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.