Re: QF checkbox set value (easy, I hope!)
| From: | Ian P. Christian | Date: | Mon, 07 Jun 2004 15:41:48 +0000 |
| Subject: | Re: QF checkbox set value (easy, I hope!) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12968@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 07 June 2004 16:03, Tom Melendez wrote:
> I'd rather have it give me back a 'Y' instead of a 1. Is this possible?
When you process the form, just have something like
$checkboxValue = $form->exportValue('checkbox')?'Y':'N';
Ian P. Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAxIy/Ee6ncNCcEO0RAvArAKCwnQ4334yeB0hoY2mfnQJ/K8/UQACfRI1l
7qMifB1zMlPafyU4FsCco5s=
=hkuk
-----END PGP SIGNATURE-----