Comments

I needmore information. I know why the code reads that way, but I need to know a) what code you wrote, b) what your expected result was, and c) what the actual result was. Without that, I have no idea what you want fixed.

Hmm.. differs from in this regard, as the button label for an is its value. As such, we used setLabel() to set the value for buttons -- but then does not get a value attribute.

I'll triage this following the 1.8.0 release.

Posted by Michaël Perrin (sweedymick) on 2009-07-17T07:39:12.000+0000

While this behavior is accurate for , it is not for as this one handles both a label and a value.
At its current state, the Zend Framework makes no use of the defined value of when rendering the element, although there is some code about it in the FormButton helper :

// add a value if one is given
if (!empty($value)) {
$xhtml .= ' value="' . $this->view->escape($value) . '"';
}

Just as a little warning, don't forget that when submitting the form, Internet Explorer 6 and 7 send the inner HTML of the button tag instead of the content of the value attribute, as described here : http://msdn.microsoft.com/en-us/library/… .
Internet Explorer 8 doesn't, but for older version some workarounds need to be implemented.
So if the value attribute is defined, the submitted data will defer for Internet Explorer than what it is currently.

Posted by Christian Albrecht (alab) on 2010-04-05T04:24:02.000+0000

Another problem arises when you validate a submitted Form with mixed
and

When submitting the Form by hitting "baz", "foo" will not be submitted,
hence the Value empty.