passing array from quickform for validation

From: Date: Fri, 22 Dec 2006 11:49:57 +0000
Subject: passing array from quickform for validation
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26176@lists.php.net to get a copy of this message
Hi I've got checkboxes and textareas which I need to validate. For each checkbox there is a textarea. When I validate I am calling my own function which is supposed to get the checkbox/textarea group and validate it. According to the documentation quickform will pass the group elements as an array. When I do print_r($vars) [where $vars is supposed to be the array] I get something like '1xxx2yyy' That is: checkbox1 ticked and textarea1 contents xxx, checkbox2 ticked and textarea2 contenx yyy etc. That doesn't seem to be an array or else I am doing something wrong. How can I put this into something where for each checkbox ticked I can check the length of the textarea string and make sure it is not over 200 - that's all I want to do. Any ideas? Thanks rav www.bitesoftware.com - software for a better lifestyle _________________________________________________________________ It's Hotmail's 10th Birthday! Come and play Pass the Parcel http://www.msnpasstheparcel.com

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