Hi all,
I have the following code to use checkboxes on my page:
if instr(Request.f orm("chkWorkTyp e"),"03") then
response.write( "<td width=""23%"" class=""detaill p""><input
type=""checkbox "" name=""chkWorkT ype"" value=""03""
checked=""check "">Exterior </td>")
else
response.write( "<td width=""23%"" class=""detaill p""><input
type=""checkbox "" name=""chkWorkT ype"" value=""03"">Ex terior</td>")
end if
if instr(Request.f orm("chkWorkTyp e"),"7A") then
response.write( "<td width=""25%"" class=""detaill p""><input
type=""checkbox "" name=""chkWorkT ype"" value=""7A""
checked=""check "">Ceilings </td>")
else
response.write( "<td width=""25%"" class=""detaill p""><input
type=""checkbox "" name=""chkWorkT ype"" value=""7A"">Ce ilings</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("sht y1") & oRS.fields("sht y2") &
oRS.fields("sht y3")
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!
I have the following code to use checkboxes on my page:
if instr(Request.f orm("chkWorkTyp e"),"03") then
response.write( "<td width=""23%"" class=""detaill p""><input
type=""checkbox "" name=""chkWorkT ype"" value=""03""
checked=""check "">Exterior </td>")
else
response.write( "<td width=""23%"" class=""detaill p""><input
type=""checkbox "" name=""chkWorkT ype"" value=""03"">Ex terior</td>")
end if
if instr(Request.f orm("chkWorkTyp e"),"7A") then
response.write( "<td width=""25%"" class=""detaill p""><input
type=""checkbox "" name=""chkWorkT ype"" value=""7A""
checked=""check "">Ceilings </td>")
else
response.write( "<td width=""25%"" class=""detaill p""><input
type=""checkbox "" name=""chkWorkT ype"" value=""7A"">Ce ilings</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("sht y1") & oRS.fields("sht y2") &
oRS.fields("sht y3")
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!
Comment