QF 3.2 - regex throwing errors

From: Date: Wed, 05 Nov 2003 16:46:23 +0000
Subject: QF 3.2 - regex throwing errors
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8777@lists.php.net to get a copy of this message
Hi, Just upgraded to QF 3.2 and appear to be getting a regular expression error now. I defined a rule to check if a postcode entered was valid: $this->addRule('postcodeGroup', $this->language['L_InvalidPostcode'], 'regex', '/[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}/', 'client'); When the form is submitted the validation appears to be executed on the server side now (why?) and also kicks up the warning: Warning: preg_match() expects parameter 2 to be string, array given in /usr/local/lib/php/HTML/QuickForm/Rule/Regex.php on line 61 Did something major change? I cannot see anything relevant mentioned in the changes for this version. Regards, -- Mike Carter ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________

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