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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.