![borracho](http://static.forosdelweb.com/fdwtheme/images/smilies/borracho.png)
Tengo un formulario que carga todos los campos de una tabla en arrays para que luego estos sean editados y actualizados de la siguiente manera:
Código PHP:
<?php
$result=mysql_query("SELECT * FROM impresiones ORDER BY comercio");
echo "<form method='POST' action='add_impresiones.php'>";
echo "<table border='1px' cellspacing='1px' >";
echo "<tr>\n";
echo " <th style='width:230px;'>Comercio/Sucursal</th>\n";
echo " <th style='width:20px;'>Prn</th>\n";
echo " <th style='width:20px;'>Modelo</th>\n";
echo "</tr> <br />";
while($row = mysql_fetch_array($result)) {
echo "<tr>\n";
echo "<td align='center'><font face='Arial, Helvetica, sans-serif'>";
echo "<input readonly='true' type='text' name='comercio[]' size='40' maxlength='15' value='$row[comercio]:'>";
echo "</font></td>";
echo "<td align='center'><font face='Arial, Helvetica, sans-serif'>";
echo "<input type='text' name='prn[]' size='15' maxlength='15' value='$row[prn]'>";
echo "</font></td>";
echo "<td align='center'><font face='Arial, Helvetica, sans-serif'>";
echo "<input type='text' name='modelo[]' size='15' maxlength='15' value='$row[modelo]'>";
echo "</font></td>";
}
echo "</table>";
echo "<br />";
?>
<input type='submit' name='ingresar' title='Ingresar Planilla' value='Ingresar'/>
<input type='button' title='Cancelar' value='Cancelar' name='Cancelar' onclick=" location.href='index.html' " />
</form>
La pregunta es: ¿como hago para ingresar los dos arrays (prn y modelo)a traves de un "update" sabiendo que el while es comercio=$comercio ? Muchas Gracias!