Well, given a form of:
<form name="CellCharges" action="update.php" method="post">
<select name="Month">
<!-- Month Options here.
Each value is the numerical month -->
</select>
<!-- A loop. If getting from a database, $row is an array of info from current row -->
$row['telehponeNumber'] <input type="text" name="charges[$row['telephoneID']]">
<!-- each item would have that type of syntax -->
<input type="submit" value="Update">
</form>
Then, just loop through the array "charges" and for each $key => $val pair, tac on a new INSERT statement:
<?php
$charges = $_POST['charges'];
$query = "INSERT INTO `table` (Month, telephoneID, amount) VALUES";
foreach($charges as $telID => $charge)
{
if(!empty($charge))
{
$query .= "\n('".mysql_real_escape_string($_POST['Month'])."', '".$telID."', '".$charge."'),";
}
}
$query = substr($query, 0, -1); // Removes final ",". Otherwise, syntax error
Then, just run the query using the [man]mysql[/man] functions.
~Brett