HTML_QuickFrom setValue() not working as expected
| From: | Ian P. Christian | Date: | Mon, 16 Aug 2004 14:35:47 +0000 |
| Subject: | HTML_QuickFrom setValue() not working as expected | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14132@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm having problems with setValue(). I'm sure this code used to work... but
it's doing odd things now.
As you can see, the 'replyElements' value should be set to 'moo' here, but
when outputting the form, it's not.
Anyone have any ideas?
$replyElements =& $this->getElement('replyElements');
<snip>
$replyElementsArray[] = $addElement['Name'];
<moresnip>
var_dump($replyElementsArray);
//$replyElements->setValue(serialize($replyElementsArray));
$replyElements->setValue('moo');
Kind Regards,
- --
Ian P. Christian
- pookey@pookey.co.uk
- http://www.pookey.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBIMZDEe6ncNCcEO0RAtbMAJ9wt9wYms2jluCC8mZkBAHUSEUc6wCfW70n
+QLKjrkmAJf9iOgdZN1vcyY=
=jik9
-----END PGP SIGNATURE-----