Re; [UPHPU] Posting a form

Jeffrey Moss jeff at opendbms.com
Thu Feb 24 15:42:01 MST 2005


Technically nothing could stop the submission, they could just redo the 
page. But in your case it doesn't matter so go ahead with this.

If you say onSubmit="return validate();" then if validate returns false it 
will not submit the form.

-Jeff

----- Original Message ----- 
From: "Benjamin Schmuhl" <schmuhl at minglematch.com>
To: <uphpu at uphpu.org>
Sent: Thursday, February 24, 2005 3:29 PM
Subject: Re: Re; [UPHPU] Posting a form


> On Thu, 2005-02-24 at 13:00 -0700, Jeffrey Moss wrote:
>> If I'm not mistaken, you can do <form method="post"
>> onSubmit="javascript:validate();">
>
>
> But can that function *stop* the submission?  I don't want them to move
> off the form (even a refresh) if I can avoid it.
>
>
> P.S.  This is not a credit card form or anything of any sort mentioned
> by Mr. Newbold.  In this case it is more convenient for the user to
> receive feedback before the form is submitted.  Validation occurs client
> and server (of course!) side.
>
> FYI: 97.2% of my clients are IE users with javascript turned on (2%
> firefox and <1% seo spiders)
>
> -- 
> Benjamin Schmuhl <schmuhl at minglematch.com>
> MingleMatch, Inc.
>
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net 




More information about the UPHPU mailing list