jueves, 12 de septiembre de 2013

trabajo de eliot

                      Clases de APLICATIVOS DE SERVICIO WEB
12/09/13

<form name="f1" action="resp01.php" method="get">

su nombre <input type="text" name="nombre"/><br/>
su apellido <input type ="text" name="ape" /><bvr/>
su edad <input type="text" name="edad" /><br/>
<input type="submit" value="Enviar Datos"/>
</form>

<?php
echo "primer ejercicio con PHP";
?>




















<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento sin título</title>
</head>

<body>

<h1>Resultado</h1>
<p>Se recibieron datos</p>
<?php
$nombre =$_GET["nombre"];
$ape=$_GET["ape"];
$edad=$_GET["edad"];

echo "su nombre es"." ".$nombre." ".$ape."<br>";
echo "edad es ".$edad."Años";
?>
<p>Hola<?php echo $nombre." ".$ape;?>
Tu tienes <?php echo $edad;?> años.</p>


</body>
</html>



No hay comentarios.:

Publicar un comentario