If it helps, here is one of the wrong ways I am trying. This actually inserts all the right data into the right fields. It just loops too many times and duplicats all the data. Also, I could not get the suggested way to work.
The Form Elements
echo '<input type="checkbox" name="event_position[]" value="'.$position_row['id'].'"> <b>'.$position_row['name'].'</b>';
echo '</td>';
echo '<td class=main nowrap>';
echo 'Time: <input type="text" size="14" name="position_time[]">';
echo '</td>';
echo '<td class=main nowrap>';
echo 'Quantity: <input type="text" size="3" name="position_quantity[]">';
The MySQL Insert
if(isset($_POST['add'])){
mysql_query("INSERT INTO events
(user_id, name, location, date, notes, contacts) VALUES('$user_id', '$name', '$location', '$date', '$notes', '$contacts' ) ")
or die(mysql_error());
$event_result = mysql_query("SELECT * FROM events ORDER BY id DESC LIMIT 1")
or die(mysql_error());
$event_row = mysql_fetch_array( $event_result );
foreach($event_position as $position)
{
echo $position;
foreach($position_time as $time)
{
echo $time;
foreach($position_quantity as $quantity)
{
echo $quantity;
$query = mysql_query("INSERT INTO event_positions (event_id,position_id,time,quantity)VALUES ('".$event_row['id']."','$position','$time',$quantity)")or die(mysql_error());
}
}
}