Hey Ced,
1) Declare a global flag in the JavaScript. set it on the
onClickEvent and before submitting check if the flag is on/off.
2) Set the Metadata tag to expire the page after used once.
Both of these are effective indivisually also, But i would suggest u to use
them together.
V
-----Original Message-----
From: Chin Cedric Sung Kit [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 30, 2000 10:02 PM
To: [EMAIL PROTECTED]
Subject: [off-topic] prevent submit button hit twice?
hi,
this is off-topic. i would like to know is there anyway to prevent the
user from hitting the submit button more than once? because if the user
clicks twice or more, one or more duplicated data will be sent to the
servlets; and duplicated data will be written into the database as
well....
is there anyway to prevent this?
thanks
regards,
ced
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html