I am having some real troulble trying to get multiple inserts based on checkmarks...is there a good tutorial anywhere I could look at. Basically what I am going is clicking on a course link and passing that as a variable to page2. On page to is a list of users with a check box. what I want to to do is have the user be able to click the users, click submit and then use another php page/file to submit that to the db (submitting coursename from the variable/session, and the users that were checked.

I am having a real hard time doing it, was able to get something into the db,but not what I want...thanks

    Use

    <form method="post" action="page.php">
    <type type="checkbox" name="name1" value="value1">
    <type type="checkbox" name="name2" value="value2">
    //...
    </form>

    And receive de values using:

    <?php

    if(isSet($POST['name1'])){
    //script who send de value1 to db
    }
    if(isSet($
    POST['name2'])){
    //script who send de value2 to db
    }
    //...

    ?>

    Ok!?

    see: http://www.php.net/manual/en/ref.mysql.php

      Write a Reply...