What is the type of your button? I use type="submit".

Regards,
Saša Stamenković


On Fri, Jan 22, 2010 at 11:03 PM, Hector Virgen <djvir...@gmail.com> wrote:

> Yea, unfortunately buttons are not very reliable between browsers. IE will
> submit the inner HTML of the button, while Firefox will submit the value of
> the button's "value" attribute. I don't think Zend_Form adds the value
> attribute to button elements, which is why nothing is submitted at all.
>
> If possible, I'd stick to using <input type="submit"> (Zend_Form's "submit"
> element) unless you are sure you won't run into the button's problems.
>
> --
> Hector
>
>
>
> On Fri, Jan 22, 2010 at 1:32 PM, Michael Tramontano <
> mtramont...@efashionsolutions.com> wrote:
>
>> Just a heads up to everybody out there since I just ran into this
>> problem and found the cause.
>>
>> In FF, when you submit a form with nothing but a button, a statement
>> like if($post = $this->getRequest()->getPost()) will not work in the
>> controller because FF does not submit the name/value pair for the submit
>> button. However, IE will do so, which will populate the POST array. So,
>> be careful if you are relying on the post array to contain data if your
>> form could potentially be "empty". My solution was put a dummy hidden
>> variable in.
>>
>> -Mike Tramontano
>>
>
>

Reply via email to