Posted by Markus Ernst on 02/17/06 19:40
ZeldorBlat schrieb:
> Michael wrote:
>
>>I think it is disabled="true" that you want to use. That should work, I
>>think.
>
>
> HTML style:
> <input type="checkbox" name="foo" disabled>
>
> XHTML style:
> <input type="checkbox" name="foo" disabled="disabled"/>
>
Disabled and readonly are different things - IIRC the values of readonly
elements are submitted while the values of disabled elements are not. So
the OP could run into problems in the case of:
<input type="checkbox" name="foo" value="1" checked disabled>
In this case readonly is definitely the correct attribute. Internet
Explorer seems not to support readonly, though, which is a bug.
Anyway as this is not a PHP topic there might more detailed information
to be found in an HTML group.
--
Markus
[Back to original message]
|