dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Generating a class list with 3 tick boxes

  1. #1
    Join Date
    Mar 2005
    Posts
    44

    Generating a class list with 3 tick boxes

    hi guys,

    I am doing a class register on a website where i will generate a list of names of students from a database and alongside each name there will be three tick boxes labelled "Present", "Absent" and "Late".

    Generating the list of names to come on the website is very easy, the problem is how do i connect the three tick boxes to the names so when for example the "present" tick box is checked for that student, it will register on the database that he is present on a specific date.

    I can do it with fixed values, for example if there are fixed names of pupils i can always name the check boxes and it's easy from there but the names are generated at random from a long list in the database.

    Anyone have a solution code or a link that can help me?

    thanks

  2. #2
    Join Date
    Jun 2003
    Location
    Indiana, USA
    Posts
    1,138
    add the student id into the tickbox's name. Then seperate the id from what the name is and then you know who, and what the student is.

  3. #3
    Join Date
    Mar 2005
    Posts
    44
    how do i seperate the id from the name before i do the insert into the database?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles