I have an html/php form that lists multiple inputs in which users can change values. I have a php while loop create the fields like so:
`...
$result = mysql_query($query);
while (list($a,$b,$c) = mysql_fetch_row($result))
{
echo '<tr>';
echo '<td>$a</td>';
echo '<td><input name="b" type="text" value="'.$b.'"</input></td>';
echo '<td><input name="c" type="text" value="'.$c.'"</input></td>';
echo '</tr>';
}
...`
For this example I can have multiple lines of a,b,c and want to get all of the values when i submit the form via POST. Only $b and $c are input values that can be changed. Do I create variables $a,$b,$c as arrays, and if so, how do I set that up so that all of the values will be stored?
Aucun commentaire:
Enregistrer un commentaire