Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/12/2005, 04:35
kayetano
 
Fecha de Ingreso: marzo-2005
Mensajes: 74
Antigüedad: 19 años
Puntos: 0
Hola

Ya tienes que estar desesperado ;)
Código:
<form action="script.php" method="post">
<form action="prueba.php" method="post">
<p>1
<input name="seleccion[1]" type="checkbox"/>
<label>
<input name="nombre[1]" type="text" id="nombre" />
</label>
</p>
<p>2
<input name="seleccion[2]" type="checkbox" />
<input name="nombre[2]" type="text" id="nombre" />
</p>
<p>3
<input name="seleccion[3]" type="checkbox" />
<input name="nombre[3]" type="text" id="nombre" />
</p>
<p>
<input type="submit" name="Submit" value="Enviar">
</p>
</form>
Código:
...
foreach( $seleccion AS $k => $v) {
// Suponiendo que trabajas con MySQL
mysql_query( "INSERT INTO miTabla VALUES( '". $nombre[$k] ."' )" );
}
__________________
Salu2
KAYETANO