-
-
Save parzibyte/dd86ebee98ae107bd29ddf3f02ef1c64 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
<?php | |
if (!isset($_POST["correo"]) || !isset($_POST["palabraSecreta"]) || !isset($_POST["palabraSecretaConfirmar"])) { | |
exit("Faltan datos"); | |
} | |
include_once "funciones.php"; | |
if ($_POST["palabraSecreta"] !== $_POST["palabraSecretaConfirmar"]) { | |
header("Location: formulario_registro.php?mensaje=Las contraseñas no coinciden"); | |
exit; | |
} | |
registrarUsuario($_POST["correo"], $_POST["palabraSecreta"]); | |
header("Location: formulario_login.php?mensaje=Usuario creado. Inicia sesión"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment