Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit form

Status
Not open for further replies.

Linkan

Programmer
Feb 7, 2001
44
SE
Hi,

How can i prevent my form from beeing submited more then once? I have a DB app and i would like to be able to prevent more then one submit.

Thanks,

Linkan
 
You could use a Session variable and test it before submitting the form.

vlad
 
But they need to be able to come back later in the same session to submit again.

/linkan
 
Set the variable to false when the user clicks the button and to true every time the page loads.

vlad
 
You can also disable the control in the onclick event, and then re-enable it at the end of your meaty bit of processing.

Good luck!

Edward "Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top