Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Location
    Oxfordshire, UK
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    check box / radio button problem

    hi all,

    I have some checkboxes and radio buttons on a form i have created. when checked they enter the value of 1 in to the database. what i need to be able to do is now have a form that will enable me to be able to update the information in the database. what i am stuck with is how i can set the checkboes to how they were when the form was submitted, so like the initial value of a text box.

    If the user ticked the box first time round and comes back to update it how can i pre populate the form with the right boxes ticked?

    hope that makes sense.

  • #2
    dev
    dev is offline
    New Coder
    Join Date
    Jan 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    not able to get what u hv said.
    will u plz explain it

  • #3
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use simple If Statements to compare the value

    Here is an Example using Request. You can do the same using a recordset. Infact it's better as you can do it in a loop.

    http://computer-helpforum.com/asp/as...ng_request.asp


  •  

    Posting Permissions

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