Re: Quickform Validation not occuring

From: Date: Sun, 05 Dec 2004 22:47:53 +0000
Subject: Re: Quickform Validation not occuring
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16030@lists.php.net to get a copy of this message
Hah! Ok, thank you. Hhaa i didnt even think about that... k now I feel dumb. When I was writing it, I was thinking "validation has to be done... otherwise, display the form," and it didnt occur to me that I hadnt actually... put it where it was displaying the form. Whoops ;) Thanks guys!! "Martin Braun" <uvsm@stud.uni-karlsruhe.de> wrote in message news:41B38E63.5030905@stud.uni-karlsruhe.de... > Adam Hubscher wrote: > > if ($this->validate()) { > > $this->process('ProcessNewUser',FALSE); > > } > > else{ > > $this->addElement('text','account','Desired Login (Max 10 characters):', > > hm, this doesn't seem to make any sense to me. > you validate first, then add the rules - how is the validator supposed > to know how to validate? > > cheers > mb > -- > /* no comment */ > > Please use my public PGP key: http://www.mbant.de/mbant-gpg-key

« previous php.pear.general (#16030) next »