Re: QuickForm2 validation

From: Date: Tue, 25 May 2010 08:47:29 +0000
Subject: Re: QuickForm2 validation
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30561@lists.php.net to get a copy of this message
Hi Anonymous, On 25.05.2010 12:15, Php Developer wrote:
if (('POST' == $_SERVER['REQUEST_METHOD'])&& ($form->validate())) {
Also the REQUEST_METHOD check is redundant, validate() checks whether the form was submitted and returns false if it wasn't.

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