Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 20, 2021 23:56
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/dd86ebee98ae107bd29ddf3f02ef1c64 to your computer and use it in GitHub Desktop.
Save parzibyte/dd86ebee98ae107bd29ddf3f02ef1c64 to your computer and use it in GitHub Desktop.
<?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