function chkForm()
{
// logic
if (LogicFails) return false; else return true;
}
<form method="post" onSubmit="return chkForm()">
</form>
Is this what you want to do?
capcha should be checked within server side code (via Ajax or posts) and
should not be done this way in JS,
JS is client side so your capcha could be easily defeated.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Flavio
Sent: Monday, March 29, 2010 9:50 AM
To: MooTools Users
Subject: [Moo] Re: Check and then submit the form
On Mar 29, 3:41 pm, Barry van Oudtshoorn <[email protected]>
wrote:
> Your best bet is probably to submit the *entire* form, including the
> captcha, at once, and have your server-side logic decide whether to
> continue processing the body of the form according to the captcha's
> validity. Is it possible for you to do this, or are your hands tied in
> terms of server-side coding?
Thanks for the tip, well, I'm working on top of Joomla, so I don't
want to hack the core or create a
custom registration process.. the thing is basically working (the
captcha is correctly checked), I just want to submit the form
from my mootools code to continue the process.
To unsubscribe from this group, send email to
mootools-users+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.
To unsubscribe from this group, send email to
mootools-users+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.