>I am trying to prevent users from submitting this form twice but I am still
>using the missing fields action in Witango to catch missing fields.
>
>So two questions.
>
>One will this work even after they hit submit and get the missing fields
>message? If not is there a way to reset the counter when the hit the back
>button on the missing fields result page?
generally no, but look at the DOM, as if you're framed you can keep the
submit count in a window that doesn't get reloaded (i.e., not the missing
fields window). It looks like you want this to be a function, no? Else
to whom are you returning true/false?
>
>2. I have something messed a little in the syntax here I am sure because I
>took this code out of one that also did some validation that I didn't need.
>
>
><SCRIPT LANGUAGE="JavaScript">
>
>
><!-- Begin
>var submitcount=0;
> if (submitcount == 0)
> {
> submitcount++;
> return true;
> }
> else
> {
> alert("This form has already been submitted. Thanks!");
> return false;
> }
>
>// End -->
></script>
>
>Thanks
>--
>Dan Stein
>Digital Software Solutions
>799 Evergreen Circle
>Telford PA 18969
>Land: 215-799-0192
>Mobile: 610-256-2843
>Fax 413-410-9682
>FMP, WiTango, EDI,SQL 2000
>[EMAIL PROTECTED]
>www.dss-db.com
>
>
>________________________________________________________________________
>TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
>
Bill Conlon
To the Point
345 California Avenue Suite 2
Palo Alto, CA 94306
office: 650.327.2175
fax: 650.329.8335
mobile: 650.906.9929
e-mail: mailto:[EMAIL PROTECTED]
web: http://www.tothept.com
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf