QF Checkbox value setting

From: Date: Fri, 24 Oct 2003 13:14:03 +0000
Subject: QF Checkbox value setting
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8557@lists.php.net to get a copy of this message
Hi, In a bit of a confuddle with setting a more unique value for when a checkbox is selected on a quickform. Using: $this->addElement('checkbox', $key, $language['L_'.ucfirst($value)], '')); I get: <input name="1GZc" type="checkbox" value="1" id="qf_fcfe58" /> If I then try to force set a value using: $this->addElement('checkbox', $key, $language['L_'.ucfirst($value)], '', array('value' => 'arse')); I get: <input value="1" name="1GZc" type="checkbox" id="qf_fa141d" /> Why is my value not set to 'arse' ? Something is over riding it to '1' still? Is this a bug? Regards, Mike C. -- 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 (#8557) next »