Re; [UPHPU] Posting a form

Gary Thornock gthornock at
Thu Feb 24 15:51:40 MST 2005

--- Benjamin Schmuhl <schmuhl at> wrote:
> 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.

<form method="post" onSubmit="javascript:return validate();">

and then make sure that validate() returns false if the form should
not be submitted (or, of course, true if it should).

PGP Key ID: 071B173D
Fingerprint: ED30 B048 6833 56B4 28C0 CE52 F12B 884A 071B 173D

More information about the UPHPU mailing list