snowboardr
Programmer
Im trying to figure out the best way to get this done. I have two checkboxes. I need them updated to the db if they are checked or uncheck. This is the direction I am going im sill not sure whats the best way to get it to update.
check values = [id number]
I guess the real question is...how do I put the value if the check box is checked or not..do I just send "True" or "False" and also is this a good way to do this?
check values = [id number]
Code:
If Request.QueryString("mode") = "update" then
message = "Account updated!"
If NOT Request.Form("check1") = "" then
message = "Check1 - updated"
Sql = "UPDATE users SET check1 =" & [??] & "WHERE user_id =" Request.Form("check1")
End if
If NOT Request.Form("locked") = "" then
message = "Check2 - updated"
Sql = "UPDATE users SET check2 =" & [??] & "WHERE user_id =" Request.Form("check2")
End if
End If