QF checkbox set value (easy, I hope!)
| From: | Tom Melendez | Date: | Mon, 07 Jun 2004 15:03:11 +0000 |
| Subject: | QF checkbox set value (easy, I hope!) | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-12966@lists.php.net to get a copy of this message | ||
Hey everyone,
I hope this is an easy one for you folks:
How can I change the value of a checkbox? I use this code:
$form->addElement('checkbox', 'mycheck2','My
check','chcklabel',array('value'=>'xxxxx'));
and in the tag, the value still comes out as 1. Now, I understand that
a checkbox is a True/False type thing (if its set, then it is true), but
I'd rather have it give me back a 'Y' instead of a 1. Is this possible?
Thanks,
Tom
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc