L
L
Hello,
I am looping through a recordset and would like the value of the
strvarcb(checkbox) and strvarhv(hidden field) to be the names of the input
fields respectively:
I would like the results to be:
CB_020
CB_021, etc...
What's wrong with the Response.Write <INPUT....> statement?
See Code Below:
Do While Not objRS.EOF
strvarid = objRS("CompanyID")
strvarcb = "CB_" & strvarid
strvarhv = "HV_" & strvarid
If objRS("SendMsg") = True then
active = "YES"
chkd = "CHECKED"
Else
active = "NO"
chkd="NOTCHECKED"
End if
'
'
Response.Write "<INPUT Type ='Checkbox' Name='" &strvarcb& "' Value='Yes' "
&chkd& " >"
Response.Write "<INPUT Type='Hidden' Name='"&strvarhv&"' Value = '"
&active& "'>"
'
For Each item in Request.Form()
Response.Write(item &"<p>")
Next
se.Write(item &"<p>")
Next
Results:
fpdbr_0_PagingMove
ContactState1
txtUserEmail
Search
I would like the results to be:
CB_020
CB_021, etc...
What's wrong with the Response.Write <INPUT....> statement?
I am looping through a recordset and would like the value of the
strvarcb(checkbox) and strvarhv(hidden field) to be the names of the input
fields respectively:
I would like the results to be:
CB_020
CB_021, etc...
What's wrong with the Response.Write <INPUT....> statement?
See Code Below:
Do While Not objRS.EOF
strvarid = objRS("CompanyID")
strvarcb = "CB_" & strvarid
strvarhv = "HV_" & strvarid
If objRS("SendMsg") = True then
active = "YES"
chkd = "CHECKED"
Else
active = "NO"
chkd="NOTCHECKED"
End if
'
'
Response.Write "<INPUT Type ='Checkbox' Name='" &strvarcb& "' Value='Yes' "
&chkd& " >"
Response.Write "<INPUT Type='Hidden' Name='"&strvarhv&"' Value = '"
&active& "'>"
'
For Each item in Request.Form()
Response.Write(item &"<p>")
Next
se.Write(item &"<p>")
Next
Results:
fpdbr_0_PagingMove
ContactState1
txtUserEmail
Search
I would like the results to be:
CB_020
CB_021, etc...
What's wrong with the Response.Write <INPUT....> statement?