Results 1 to 2 of 2

Thread: checkboxes

  1. #1
    Join Date
    Dec 1969

    Default checkboxes

    I am creating a form where a user is to update a particular record. This particular record&#039;s individual values have been posted into the appropriate input boxes, where than can be edited and then re-submitted. Because I have several Yes/No field types in my database, I am using checkboxes. Without having to write an IF statement assigning a value of "checked" in the &#039;&#060;input type="checkbox" value="on" checked&#062;&#039; reference is there any way I can post the appropriate true/false data to a checkbox?<BR><BR>Thanks <BR><BR>

  2. #2
    Sven Cipido Guest

    Default RE: checkboxes

    Hi,<BR><BR>Before I was alos looking for this, but the only way I know is using the IF-statement. Here&#039;s my solution, which works fine for me :<BR><BR>&#060;input type="checkbox" name="ONOFF_Line" value="&#060;%Response.Write(rsADO("OnOff_Line"))% &#062;" &#060;%If rsAdo("OnOff_Line") = True Then Response.Write("Checked")%&#062;<BR><BR>Sven Cipido

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts