Martin Honnen wrote on 13 mrt 2004 in
microsoft.public.inetserver.asp.general:
Matt wrote:
what's the differences between readonly and disabled attribute??
When I do the post, it couldn't get both values <%= fname %>. any
ideas??
<input type="text" name="fname" value="Joe" readOnly>
The data of a readonly control is submitted but the user cannot edit
the data.
<input type="text" name="fname" value="Joe" disabled>
A disabled input is not submitted. Disabling input statically doesn't
make much sense usually as you don't know if script is available to
enable the element when needed therefore consider not to use the
disabled attribute with HTML and instead to disable with script when
needed.
This is not the case with serverside code.
<% if zipdone then disab="disabled" else disab="" %>
<input type=submit name="zip" <%=disab%>>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)