HTML_QuickForm - setValue() not working?

From: Date: Thu, 21 Oct 2004 09:52:13 +0000
Subject: HTML_QuickForm - setValue() not working?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15010@lists.php.net to get a copy of this message
I have a form that's changing a hidden element with javascript before submitting, and I'm trying to reset this element before redisplaying the form. Unfortunatly doing a setValue() on this element doesn't appear to work, and I just can't figure out why this might be. class myForm extends HTML_QuickForm { function myForm() { $this->HTML_QuickForm('RadUser'); // this is added for the javascript to change to allow the // action handler (serverside) to read it $action =& $this->createElement('hidden', 'action'); $this->addElement($action); // call the action handler $this->_actionHandler(); $action->setValue('moo'); $this->addElement('submit', 'post', 'Submit'); } } Any ideas are most welcome. Kind Regards Ian P. Christian http://pookey.co.uk

Attachment: [application/pgp-signature]
« previous php.pear.general (#15010) next »