views:

46

answers:

2

This is what I found by fireBug in firefox.

Is it the same in other browsers?

If so,what's the reason for this?

+1  A: 

Yes, All browsers do not should not submit the disabled inputs, as they are read-only.

More info (section 17.12.1)

Aziz
Workaround: add an `<input type="hidden">` element with the same name/value as the disabled input.
John Kugelman
+1  A: 

They don't get submitted because that's what it says in the W3C spec.

17.13.2 Successful controls

A successful control is "valid" for submission. [snip]

  • Controls that are disabled cannot be successful.

In other words, the spec says that controls that are disabled are considered invalid and should not be submitted.

MiffTheFox