82 users online (0 members and 82 guests)  

  Results 1 to 2 of 2


  1. checkbox madness    Forum: HTML Forum
    Replies: 0
  2. No footer and checkbox    Forum: PHP Forum
    Replies: 5
  3. Problem in checkbox [PHP]    Forum: PHP Forum
    Replies: 4
  4. javascript checkbox    Forum: Javascript Forum
    Replies: 3
  5. HTML/VBSCRIPT checkbox help...please    Forum: Website Scripts Forum
    Replies: 4
  1. #1
    riodesmoke's Avatar
    New User

    Join Date
    Jun 2008

    checkbox madness

    I am having trouble with some checkbox code. I loop through a recordset and build a table while adding a checkbox. I need to check the value in the recordset and see if the checkbox needs to be checked or not. Here is what I have

    Do While Not rsHist.EOF

    Response.Write ("<tr><td><input type=checkBox name=""iHistory" & rsHist("ConfID") & """ & </td>")

    Response.Write ("<td style=""text-align: center;"">"&rsHist("Email")&"</td>")

    Response.Write ("<td style=""text-align: center;"">"&rsHist("ConfID")&"</td>")

    Response.Write ("<td style=""text-align: center;"">"&rsHist("FileLocation")&"</td>")

    Response.Write ("<td style=""text-align: center;"">"&rsHist("FileName")&"</td>")

    Response.Write ("<td style=""text-align: center;"">"&rsHist("FileLocation2")&"</td>")

    Response.Write ("<td style=""text-align: center;"">"&rsHist("FileName2")&"</td>")

    Response.Write ("<td style=""text-align: center;"">"&rsHist("Date")&"</td>")

    If rsHist("Resend") = "True" Then
    'Request("iHistory") = 1
    document.forms(0).iHistory.checked = True

    As you can see I have been trying a few things. I also cannot get the recordset to update when I check the checkboxes::

    If Request("iHistory") & rsHist("ConfID") = checked then

    rsHist.Update "Resend", "True"

    End if

    I think part of my problem is trying to determin which checkbox(es) are checked with the & rsHist("ConfID")

    Please help. thank you very much!
    Last edited by riodesmoke; 06-26-2008 at 02:10 PM. Reason: adding

  2. #2
    rangana's Avatar

    Join Date
    Feb 2008
    Cebu City Philippines

    Re: checkbox madness

    This is'nt an html problem, might be fitting to ASP.

    Thread moved.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

Tags for this Thread