php Addrule ( Numeric and decimal point)

From: Date: Sun, 02 May 2010 09:03:44 +0000
Subject: php Addrule ( Numeric and decimal point)
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30481@lists.php.net to get a copy of this message
Hello everyone, I have a quick question regarding the form->addGroupRule. I am currently creating a field where it requires the user to enumer a number and the number must be a 1 decimal point ( i.e 1.2). I am using : $this->form->addGroupRule($field . "_group", array(array(array("Numbers only, please", 'numeric')))); but I am not sure how to add the 'decimal point' validation rule to the rule above. I highly appreciate any hints or feedback in this regard! regards, daniel

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