> From: [EMAIL PROTECTED]> To: php-general@lists.php.net> Date: Sat, 23 Feb 
> 2008 16:01:08 -0300> Subject: [PHP] validate + if> > Hi list!> > > > I have a 
> form.> > I validated it with javascript.> > Do the validation, but send the 
> form information.> > How can I prevent send the information and stay in the 
> form?> > When validate all correctly send the info, but if the form isn’t 
> complete> correctly don’t send.> > > > Thanks!> > > > + _> // Emiliano 
> Boragina _> > // Diseño & Comunicación //////////////////> + _> > // [EMAIL 
> PROTECTED] /> // 15 40 58 60 02 ///////////////////////////> + _> > > 
Return false from the form validation if it fails and call if with the form's 
onSubmit function
 
<form onsubmit="return validate();">
 
returning false will stop the submission
 
bastien
_________________________________________________________________

Reply via email to