Ver Mensaje Individual
  #5 (permalink)  
Antiguo 17/07/2006, 10:59
sober25
 
Fecha de Ingreso: junio-2006
Mensajes: 37
Antigüedad: 17 años, 9 meses
Puntos: 0
Este es el formulario:

Cita:
$resultado=mysql_query("SELECT * FROM 3sict_debaser_files",$link);
// Se inicial el formulario
echo "<form action='index.php?op=newarticle' method=\"post\"> \n";
?>
<TABLE BORDER=5 WIDTH=100>
<TR>
<TH align=center COLSPAN=2><h3>Elige los archivos disponibles para poder reproducirlos</h3> </TH>
</TR>

<?while ($row = mysql_fetch_array($resultado)){ ?>


<TR>
<TD><?echo "<input type=\"checkbox\" name=\"seleccion[]\" value=\"".$row['xfid']."\">".$row['filename']."<br>";?> </TD>
<TD><? echo "<input type=\"hidden\" name=\"filenames[]\" value=\"".$row['filename']."\">";?> </TD>


</TR>
<? } ?>
</TABLE>
<?
echo "<input type=\"submit\" name=\"Submit\" value=\"Enviar\">";
echo "</form>";
?>
y aqui donde lo recibo:
Cita:
if(isset($_POST['Submit']))
{
if(isset($_POST['seleccion']))
{
for ($x=0; $x<=count($_POST['seleccion']); $x++){
echo $_POST['seleccion'][$x]." --> ".$_POST['filenames'][$x]."<br>";
}

}
}