-
-
Save parzibyte/7f084e33e49c4eb39e7a0aa11328672f 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="correo" type="email" placeholder="Escribe tu correo electrónico"> | |
<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> | |
<a href="registro.html">Registrarme</a> | |
<br><br><a href="//parzibyte.me">Creado por Parzibyte</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment