Created
January 2, 2019 10:15
-
-
Save guibranco/c8e67566e4fbd2de9e2d8762624876ba to your computer and use it in GitHub Desktop.
$_POST - Kano Coto - Desenvolvimento Web - Facebook - https://www.facebook.com/groups/desenvolvimentoweb/permalink/2176514869073607/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if($_POST){ | |
if(isset($_POST["nombre"])) | |
echo "Bienvenido " . htmlspecialchars($_POST['nombre']) . ".<br />"; | |
if(isset($_POST["edad"])) | |
echo "Usted tiene " . $_POST["edad"] . " años!"; | |
} | |
?> | |
<form action="postEcho.php" method="POST"> | |
Ingrese su nombre: <input type="text" name="nombre" placeholder="Su nombre"/> | |
<br /> | |
Ingress su edad: <input type="number" name="edad" /> | |
<br /> | |
<button type="submit">Enviar!</button> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment