Hi Ian,

thanks for the speedy response. 
In fact, it does matter to me - I was trying to figure a way to add multiple
submit buttons to do different things in one form. Obviously the only non-JS
way to work with IE6 is to use two forms. What a mess.

Thanks for that helpful blog post.

Bernd


Ian Young-6 wrote:
> 
> Perhaps this doesn't matter to you, but you should be aware that IE 
> screws up <button> elements in a big, big way, including submitting the 
> label as the value of the element[1]. My guess would be that this is why 
> Zend is setting your value and your label to the same thing - if you're 
> counting on regular form submission, they need to be the same for 
> compatibility's sake.
> 
> Ian
> 
> [1] http://radaschuetz.com/archive/2007/04/21/button-hell/
> 
> Bernd Matzner wrote:
>> Hello,
>> 
>> I'm trying desperately to set a value for a button to generate the
>> following
>> HTML:
>> 
>> <button type="submit" name="myButton" value="myValue">My Label</button>
>> 
>> so that the value is submitted rather than the label.
>> 
>> Using $element->setValue('myValue'); however has no effect.
>> 
>> Any hints on how to achieve that?
>> 
>> Thanks,
>> Bernd
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/setValue-for-zend_form-button-tp22486328p22486638.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to