Re: Other ways to validate quickform server side

From: Date: Wed, 15 Jun 2005 08:20:58 +0000
Subject: Re: Other ways to validate quickform server side
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19628@lists.php.net to get a copy of this message
On 15/06/2005, at 10:58 AM, Dan Rossi wrote:
On 15/06/2005, at 10:15 AM, Justin Patrin wrote:
Sorry, I must not be understanding your question. I suggest you use addFormRule on the form with a callback which checks for the user being unique. If the user is not unique return an error. This way the validate() call on the form will fail and you won't process it (assuming your code is set up right).
Ok it looks like I have to duplicate everything in the get request method into the post request method to do server side validation, if it validates to the do database stuff or else show the form again :\

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