RE: validate + if

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: emiliano.boragina@xxxxxxxxx> To: php-general@xxxxxxxxxxxxx> Date: Sat, 23 Feb 2008 16:01:08 -0300> Subject:  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@xxxxxxxxx /> // 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
_________________________________________________________________


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux