[!--quoteo(post=377098:date=May 25 2006, 01:39 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ May 25 2006, 01:39 PM) [snapback]377098[/snapback][/div][div class=\'quotemain\'][!--quotec--] What method are you using in your form? GET or POST, if it is POST, you should be using the $_POST array, not the $_GET array. Ken [/quote] Using Get.... Here is entire code if ( $_GET['Submit'] == 'Submit'){ print "<P>"; $part_info = array(); $part_count = 0; while(list($key, $val) = each ($_GET)){ $temp = array($key=>$val); // print "$key=>$val<br>"; if ($key != "Submit"){$part_info = array_merge($part_info, $temp);} } while(list($key, $val) = each ($part_info)){ if ($val == "true"){ $count_index = $key . "_count"; $part_count = $part_info[$count_index]; if (!$part_count){print "You have not specified a quantity for $key. Please correct.";exit;} print "Updating $key with quantity $part_count...<br>"; $query = "SELECT * FROM `$key` ORDER BY last_update DESC LIMIT 1"; $data_result = dbquery($query, $connection); $data_row = mysql_fetch_array($data_result, MYSQL_ASSOC); $part_count = $data_row['inventory'] + $part_count; $query = "INSERT INTO `$key` (inventory, order_number, quantity, last_update) VALUES ($part_count, -1, 0, NOW())"; $result = dbquery($query, $connection); print "Quantity of $key - $data_row[model] has been changed from $data_row[inventory] to $part_count.<br>"; } }