-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclientes_alta.php
More file actions
29 lines (26 loc) · 861 Bytes
/
clientes_alta.php
File metadata and controls
29 lines (26 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
</head>
<body>
<?php
require "Administrador/funciones/conecta.php";
$con = conecta();
$nombre = $_REQUEST["nombre"];
$apellidos = $_REQUEST["apellidos"];
$correo = $_REQUEST["correo"];
$pass = $_REQUEST["pass"];
$encriptado = md5($pass);
$pregunta = $_REQUEST["pregunta"];
$encriptadopreg = md5($pregunta);
$sql = "INSERT INTO clientes (nombre, apellidos, correo, pass, pregunta)
VALUES ('$nombre','$apellidos', '$correo', '$encriptado', '$encriptadopreg')";
if($con->query($sql)===true){
echo "Registro exitoso";
}
else{
echo "Error al realizar el registro";
}
header('Location: index.php');
?>
</body>
</html>