On Fri, Jan 3, 2014 at 8:39 AM, dolphin <[email protected]> wrote:
> I use a form with "get" method. In the form I use button type "submit"
> ( <button type="submit" name="submit" value="">Submit </ button> )
> As a result, in the browser address bar I see:
> http://my.site/search?needle=test&filter=all&order=newest&submit=
> I can not disable the "name" or set a "value". I think it makes sense to
> improve it in new versions zf2 :)

You can set the value as an element attribute; however, it cannot be
disabled. Even if we do, you will still see the button appearing in
the submitted values; that's just the nature of HTML.

Also, name is always required, as it is how the form object is able to
reference the element, and we will not be changing that.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to