Ok, I am trying to create 3 radio buttons and to have "Leave" radio button checked by default if the value of D_Approved = NULL.
This code displayes correctly if this is approved or rejected but what behaves funny is that "Leave" radio button is ticked ALL the time and it alllows me to tick one more out of three radio buttons including the ticked one, this is not correct, because the whole idea on which radio buttons work is tha only one of them can be ticked, correct?
Can somebody help me with this please, this is basically the code that is suppose to do what I need it to do, but it has to allow me to select only one radio button and then I need to submit that value. What am i doing wrong here please?
If ISNULL(rsRFQ("D_Approved")) then
Response.Write("<INPUT type=""radio"" id=""D_Approved"" name=""D_Approved"" value=""1"">")
Response.Write("<INPUT type=""radio"" id=""D_Approved"" name=""D_Approved"" value=""0"">")
Response.Write("<INPUT type=""radio"" id=""D_Approved"" name="" D_Approved"" value=""NULL"" checked>")
elseIf rsRFQ("VehicleApproved") <> 0 then
Response.Write("Approved<INPUT type=""hidden"" id=""D_Approved"" name=""D_Approved"" value=""1"">")
Else
Response.Write("Rejected<INPUT type=""hidden"" id=""D_Approved"" name=""D_Approved"" value=""0"">")
End if
Any help appreciated
This code displayes correctly if this is approved or rejected but what behaves funny is that "Leave" radio button is ticked ALL the time and it alllows me to tick one more out of three radio buttons including the ticked one, this is not correct, because the whole idea on which radio buttons work is tha only one of them can be ticked, correct?
Can somebody help me with this please, this is basically the code that is suppose to do what I need it to do, but it has to allow me to select only one radio button and then I need to submit that value. What am i doing wrong here please?
If ISNULL(rsRFQ("D_Approved")) then
Response.Write("<INPUT type=""radio"" id=""D_Approved"" name=""D_Approved"" value=""1"">")
Response.Write("<INPUT type=""radio"" id=""D_Approved"" name=""D_Approved"" value=""0"">")
Response.Write("<INPUT type=""radio"" id=""D_Approved"" name="" D_Approved"" value=""NULL"" checked>")
elseIf rsRFQ("VehicleApproved") <> 0 then
Response.Write("Approved<INPUT type=""hidden"" id=""D_Approved"" name=""D_Approved"" value=""1"">")
Else
Response.Write("Rejected<INPUT type=""hidden"" id=""D_Approved"" name=""D_Approved"" value=""0"">")
End if
Any help appreciated