Re: QF checkbox set value (easy, I hope!)
| From: | Tom Melendez | Date: | Mon, 07 Jun 2004 16:06:13 +0000 |
| Subject: | Re: QF checkbox set value (easy, I hope!) | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12969@lists.php.net to get a copy of this message | ||
Hi Ian,
Thanks for the quick response! Yes, I can certainly do that, but does
this mean that I CAN'T change the value via addElement?
Thanks,
Tom
On Mon, 2004-06-07 at 11:41, Ian P. Christian wrote:
> -----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-----
--
====
========================
Tom Melendez
Senior Software Developer
BASCOM Global Internet Services, Inc.
Phone : 631-434-6600
Fax : 631-434-7800
Email : tmelendez@bascom.com
Web : http://www.bascom.com
========================
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