how to get a checkbox checked when loading the page?

how to get a checkbox checked when loading the page?

am 29.10.2005 12:28:04 von Kevin

Hi,

I have a input with type checkbox. I want it to be automatically checked if
the value from the corresponding field in the database is also checked.
I tried this:
<%
set objdc = Server.CreateObject("ADODB.Connection")
etc ...
sql="select maa13 from mytable"
dim rsArray
Set rs = objdc.execute(sql)
if not rs.eof then
rsArray = rs.GetRows()
rec = UBound(rsArray, 2) + 1
rs.movefirst
....
%>

value="<%=rs.Fields("maa13").Value%>>
.....

but nothing happens!
I can do this in Javascript like: