RE: [PHP] validate + if

From: Date: Sat, 23 Feb 2008 21:14:14 +0000
Subject: RE: [PHP] validate + if
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269974@lists.php.net to get a copy of this message
> From: emiliano.boragina@gmail.com> 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 //////////////////> + _> > // emiliano.boragina@gmail.com /> > // 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 _________________________________________________________________

« previous php.general (#269974) next »