Re: HTML_QuickForm - Problem with setValue

From: Date: Tue, 08 Jun 2004 13:56:28 +0000
Subject: Re: HTML_QuickForm - Problem with setValue
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13008@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 08 June 2004 14:44, Marcus Krause wrote: >       $tmp_checkbox = > HTML_QuickForm::createElement('checkbox',null,null,$email_row->lname.', > '.$email_row->fname); >       $tmp_checkbox->setValue($email_row->id); you can't do that. Checkboxs support a 1, or a 0. Set the name of the checkbox to id[], and then you will be able to parse the add 'id' on submit. Kind Regards, Ian P. Christian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAxcWMEe6ncNCcEO0RAgFTAJ9NQjL1ot0dZEQ5qY19xUwJKWqKqwCfYmSB BgdLzYvLp3rRk1z5FHDdAPA= =3HQx -----END PGP SIGNATURE-----

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