Retrieve data from addselect
Notice: This thread is very old.
- kevchal
- Member | 10
hello,
I tried to retrieve data from a Form. It worked for addText input but not for
the fields addSelect.
here is my code.
But, I would like to retrieve the String inside those addSelect and not the position of the item selected inside the addselect
I dumped the values of the submited form and I have
Am I doing it wrong ???
Thanks for your help
- David Matějka
- Moderator | 6445
@kevchal move it to the actionDefault method.
After submitting, form is processed before render*
method (and
after the action*
) therefore $this->owner
is empty
while the form is created for the processing. In Nette, form must be created
exactly the same in the both rendering and processing phase (security
reasons – nobody can send you faked values)