Created
January 22, 2019 16:22
-
-
Save parzibyte/a2d10d3bf642478b4f681a0d4e843060 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Ejemplo simple de login con PHP | parzibyte.me</title> | |
</head> | |
<body> | |
<!-- Se va a procesar en login.php y se enviará por POST, no por GET--> | |
<form action="login.php" method="post"> | |
<!-- | |
Nota: el atributo name es importante, pues lo vamos a recibir de esa manera | |
en PHP | |
--> | |
<input name="usuario" type="text" placeholder="Escribe tu nombre de usuario"> | |
<br><br> | |
<input name="palabra_secreta" type="password" placeholder="Contraseña"> | |
<br><br> | |
<!--Lo siguiente envía el formulario--> | |
<input type="submit" value="Iniciar sesión"> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment