tin24 de Julio del 2003
Pregunta¡Hola!
Acabo de empezar con esto del php y ya estoy chiflado. ¿Me podría alguien decir x q no me funciona el siguiente formulario?
form_entry.html
<html>
<head>
<title>Cómo introducir información en un formulario</title>
</head>
<form action="form_results.php" method="GET">
<p>Nombre: <input type="text" name="first_name">
<br>Apellidos: <input type="text" name="last_name">
<br>Dirección: <input type="tex" name="address">
<br>Ciudad: <input type="text" name="city">
<br>Estado: <input type="text" name"state">
<br>Código Postal: <input type="text" name="zip">
<br>Teléfono: <input type="text" name="home_phone">
<p><input type="submit" name="Enviar>
<p>input type="reset" name="Restablecer">
</form>
</body>
</html>
form_results.php3
<html>
<head>
<title>Resultados del Formulario</title>
</head>
<body>
<h2>Abajo están los resultados del envío del formulario</h2>
<?php
print("<p>Nombre: <b>$first_name</b>n") ;
print("<p>Apellidos: <b>$last_name</b>n");
print("<p>Dirección: <b>$address</b>n");
print("<p>Ciudad: <b>$city</b>n");
print("<p>Estado: <b>$state</b>n");
print("<p>Código Postal: <b>$zip</b>n");
print("<p>Teléfono: <b>$home_phone</b>n");
?>
</body>
</html>
Acabo de empezar con esto del php y ya estoy chiflado. ¿Me podría alguien decir x q no me funciona el siguiente formulario?
form_entry.html
<html>
<head>
<title>Cómo introducir información en un formulario</title>
</head>
<form action="form_results.php" method="GET">
<p>Nombre: <input type="text" name="first_name">
<br>Apellidos: <input type="text" name="last_name">
<br>Dirección: <input type="tex" name="address">
<br>Ciudad: <input type="text" name="city">
<br>Estado: <input type="text" name"state">
<br>Código Postal: <input type="text" name="zip">
<br>Teléfono: <input type="text" name="home_phone">
<p><input type="submit" name="Enviar>
<p>input type="reset" name="Restablecer">
</form>
</body>
</html>
form_results.php3
<html>
<head>
<title>Resultados del Formulario</title>
</head>
<body>
<h2>Abajo están los resultados del envío del formulario</h2>
<?php
print("<p>Nombre: <b>$first_name</b>n") ;
print("<p>Apellidos: <b>$last_name</b>n");
print("<p>Dirección: <b>$address</b>n");
print("<p>Ciudad: <b>$city</b>n");
print("<p>Estado: <b>$state</b>n");
print("<p>Código Postal: <b>$zip</b>n");
print("<p>Teléfono: <b>$home_phone</b>n");
?>
</body>
</html>
