Hi all,
I have the following code to use checkboxes on my page:
if instr(Request.form("chkWorkType"),"03") then
response.write("<td width=""23%"" class=""detaillp""><input
type=""checkbox"" name=""chkWorkType"" value=""03""
checked=""check"">Exterior</td>")
else
response.write("<td width=""23%"" class=""detaillp""><input
type=""checkbox"" name=""chkWorkType"" value=""03"">Exterior</td>")
end if
if instr(Request.form("chkWorkType"),"7A") then
response.write("<td width=""25%"" class=""detaillp""><input
type=""checkbox"" name=""chkWorkType"" value=""7A""
checked=""check"">Ceilings</td>")
else
response.write("<td width=""25%"" class=""detaillp""><input
type=""checkbox"" name=""chkWorkType"" value=""7A"">Ceilings</td>")
end if
There are 14 checkboxes on the form, I only showed the code for two, but
the remainder of them are coded the same way.
I am trying have one or more of the boxes checked when the page is
displayed. I tried to put a value or two in the chkWorkType field:
chkWorkType= oRS.fields("shty1") & oRS.fields("shty2") &
oRS.fields("shty3")
But when I reach the code to display the checkboxes, the chkWorkField
returns an empty string.
How can I pre-check some of the boxes?
Thanks,
George
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!