
05/09/2008, 11:10
|
 | | | Fecha de Ingreso: mayo-2007 Ubicación: por ahí intentado ayudar
Mensajes: 823
Antigüedad: 17 años, 10 meses Puntos: 6 | |
Respuesta: crear cajas d texto dependiendo de el usuario Prueba este tambien:
Código:
<html>
<head>
</head>
<body>
<form id="form2" name="form2" method="POST" ACTION="<?php echo $_SERVER['PHP_SELF']?>">
Cuantas cajas de texto ocupas <input name="cuantos" type="text"/>
<input type="submit" value="Enviar" />
<?php
if( strtoupper( $_SERVER['REQUEST_METHOD'] ) == "POST"){
$i=1;
while ($i<=$cuantos){
echo "<br />";
echo "Caja $i ";
echo "<input name=\"caja[$i]\" type=\"text\">";
$i=$i+1;
}
}
?>
</form>
</body>
</html>
Saludos!!!
__________________ "Eres grande por que caminas entre gigantes" |