Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: How to avoid more than one submition of the same form?


Message #1 by "arun" <arun@l...> on Tue, 5 Feb 2002 16:29:08 +0530
I tried using disabling the submit button but it was successfull only on ie.


arun
----- Original Message -----
From: "TurnenT" <turnent@h...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Tuesday, February 05, 2002 7:55 AM
Subject: [javascript_howto] Re: How to avoid more than one submition of the
same form?


> you could do something like this:
> <INPUT TYPE="submit" NAME="sub1"
> onClick="document.FORM1.sub1.disabled='true';" DISABLED="false">
> this will make it so when you press the button it will become disabled,
> therefor preventing the user from clicking it again.
> Hope this helps,
> TurnenT
>
> >
> > 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
> >
> >
> $subst('Email.Unsub').
> >
>
>
$subst('Email.Unsub').
>


  Return to Index