0

I Google and search every article here and in the google but i cannot find anything regarding this issue. Any idea why the request.form["name here"] is nothing when the html control is disabled something like

<input  type="radio"  name="name here" disabled /> 

removing disabled would return the values. I tested this only on IE 10 not sure on other browsers.

I am looking into changing the css of the radio button but that is a different story.

Thank you.

Mico
  • 117
  • 1
  • 12

1 Answers1

3

Disabled form fields are not part of the posted data. If you disable the html control the data will not be posted.

If you want to show the data and have it posted, but not possible to edit you can set the control to readonly instead.

<input  type="radio"  name="name here" readonly="readonly" /> 
Anders Abel
  • 67,989
  • 17
  • 150
  • 217