Not working. > foreach($_SESSION['skills'] as $key => $skill) > { > $query = "INSERT INTO table (skill, sky, sku) > VALUES ('$skill', > {$_SESSION['skys'][$key]},{$_SESSION['slus'][$key]})"; > //run query > } The foreach is generating an invalid argument. I'm just going to show again what I have set up: There are five for each of these: <input name="skill[]" type="text" id="skill[]"></td> <select name="sky[]" id="sky[]"> <select name="slu[]" id="slu[]"> Then I post the session variables as: $_SESSION['skills'] = $_POST['skill']; $_SESSION['skys'] = $_POST['sky']; $_SESSION['slus'] = $_POST['slu']; It looks like the loop above is using the $skills array to advance through the other arrays ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php