HTML_QuickForm2, getting values of radio elements

From: Date: Sun, 11 Mar 2012 16:16:08 +0000
Subject: HTML_QuickForm2, getting values of radio elements
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31450@lists.php.net to get a copy of this message
Hi, i have a form with several elements, amongst some radios: // example type input text $name = $FORM->addElement('text', 'name', ...); // type radio $FORM->addElement('radio', 'test', array('value' => 1), array('content' => 'whatsoever')); $FORM->addElement('radio', 'test', array('value' => 2), array('content' => 'whatsoever')); I like to store the single element values in a new array. As i don't no how set a reference var for radio elements like i do on other elements, i fetch the value from the $_POST Array. $form_data = array( 'name' => $name->getValue(), 'test' => $_POST['test'] ); Is there a more API-like method or way to access radio element values? I am afraid i miss something in the docs/source examples. thanks in advance Olaf

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