Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: How to avoid the user from submitting the same form more that once?


Message #1 by "arun" <arun@l...> on Tue, 5 Feb 2002 16:27:07 +0530
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1AE35.0ED515B0
Content-Type: text/plain;
	charset="windows-1252"

set your form action to nothing after submitting
 
e.g.
 
<INPUT TYPE="SUBMIT" VALUE="Submit" ONCLICK="document.forms(0).action='';">
 
 -----Original Message-----
From: arun [mailto:arun@l...]
Sent: 05 February 2002 10:57
To: javascript
Subject: [javascript] How to avoid the user from submitting the same form
more that once?



Hi,
 
I want know whether it is possible to avoid a user from submitting the same
form more than once, because when my server is slow or if there is delay in
connecting to the database  the user is able to submits the same form more
than once since the page is displayed for few seconds before the next page
is displayed. So if the user clicks the submit button more than once that
many entries are there in the database. 
 
Can any one help me?
 
regards
arun


________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com

Headquarters Address & Contact Numbers

150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel:  +44 (0) 141 248 2700.
Fax:  +44 (0)141 221 3217

 This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.




  Return to Index