PHP and dropdown insert error
<p>Hello I  want to insert in a table the values selected from a dropdown menu and values from a user that was previosly created . When I do the insert the only values that get inserted into the tables area the ones from the drop down list. But the other values dont get inserted.  Please help me. Here is the code.</p>

<pre><code>   $query= "INSERT INTO employee (UserName, Password, Name, LastName, " .
    "Email, Phone, Classification_ClassificationID) VALUES" .
    " ('$user1', SHA('$password1'),'$name', '$lastname', '$email', " .
            " '$phone_number', '$classification_id')";
       queryMysql($query);



     echo '&lt;p&gt;Account Created.&lt;/p&gt;';
     echo $user1;
        }
echo '&lt;h1&gt; Grupo Asignado:&lt;/h1&gt;' ;

if (isset ($_POST['submit'])){

foreach ($_POST['toinsert'] as $insert_id) {
$query = "INSERT INTO groupusers (GroupsID, Employee_UserName) Values ('$insert_id', '$user1')" ;
queryMysql($query);
echo mysql_num_rows($result);

echo '&lt;br /&gt;';
     }
     }

  $query = "SELECT * FROM employeegroups";
  $result = queryMysql($query);

  while ($row = mysql_fetch_array($result)) {
    echo '&lt;input type="checkbox" value="' .$row['GroupsID'] . '" name="toinsert[]" /&gt;';
    echo $row['GroupName'];


    echo '&lt;br /&gt;';

   }


echo '&lt;input type="submit" name="submit" value="Insert" /&gt;';

echo '&lt;/form&gt;';
echo '&lt;/body&gt;';
echo '&lt;/html&gt;';
?&gt;
</code></pre>
