Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/05/2008, 05:54
IMATIONE
 
Fecha de Ingreso: agosto-2005
Mensajes: 46
Antigüedad: 18 años, 8 meses
Puntos: 2
Respuesta: Error en sintaxis

<form action="mreservas.php" method="POST">
<?php

if (isset ($_POST ["numero"]) and ($_POST ["numero"]!="")){
for ($i=1; $i<=$_POST["numero"]; $i++)
echo "Nombre del Pasajero ".$i.": <input type='text' name='".$nombres[$i]."'><br />
<input type='hidden' name='cuantos' value='".$_POST["numero"]."<br/>";
}else{
$pagina = "http://localhost/ejercicios/ejercicio8b/form.htm";
Header("Location: $pagina");
}
?>
<input type="submit" value="Enviar">
</form>