Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 18, 2019 18:47
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 parzibyte/7f084e33e49c4eb39e7a0aa11328672f to your computer and use it in GitHub Desktop.
Save parzibyte/7f084e33e49c4eb39e7a0aa11328672f to your computer and use it in GitHub Desktop.
<!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