Hi,
I have a form that successfully uploads a file to the server. I want to
improve the form by having a text input. The input is defined as follows in
the code that describes the form:
$form->addElement('text', 'filterstring');
$textElement=$form->getElement('filterstring');
$textElement->setLabel('Filter by String:');
In the controller for my action ("updateAction"), I have the following
code:
$form = $this->importForm();
$uploadedData = $form->getValues();
echo var_dump($uploadedData);
'filterstring' is always NULL, no matter what I have typed into the text
input. I have had similar problems with trying to pass the value of
checkboxes, but I find the issue with the text input not passing the value
to the controller to be extremely aggravating. Am I doing something wrong?
My code isn't really different than other examples of Zend_Form I have seen.
Thanks,
Ethan
--
View this message in context:
http://n4.nabble.com/Zend-Form-text-element-is-always-null-tp1745680p1745680.html
Sent from the Zend Framework mailing list archive at Nabble.com.