Sorry if this question has already been asked, but I couldn't find it in the search...
I have a submitting form that has a bunch of check boxes, and a text box for sequences next to them. I want to insert into this one table, the values of the check boxes, and their sequences. I can do the one array with the check boxes without a problem:
foreach ($_POST['checkbox_array'] as $value)
{
$sql = "INSERT INTO
table3
(table1_id,table2_id,sequence,active_ind) VALUES ('$table1_id','$value','10','1')";
$results = mysql_query($sql) or die(mysql_error());
}
So that works without a problem, but how can I also include my second array that holds the sequence ($_POST['sequence_array'])?
Thanks!