Jump to content

IE FORM SUBMITTING MANY TIMES!!!


Orionsbelter

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/148511-ie-form-submitting-many-times/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.