Reputation: 587
I am using function getPost()
in data request.
$data = $this->getRequest()->getPost()
The $data
variable not contain value the elements marked with disabled.
<select data-id="1" class="form-control selecao-pergunta" name="perguntas[64]" disabled="disabled">
It is possible return all elements and values the form in Zend?
Thanks.
Upvotes: 1
Views: 25
Reputation: 33148
The values for disabled form elements are not posted back to the server, so there is no way to access them with PHP (or any server side language). This is part of the HTML standard.
Upvotes: 1