Skip to content

Instantly share code, notes, and snippets.

@guibranco
Created January 2, 2019 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guibranco/c8e67566e4fbd2de9e2d8762624876ba to your computer and use it in GitHub Desktop.
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/
<?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