-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesistente.php
More file actions
31 lines (20 loc) · 824 Bytes
/
esistente.php
File metadata and controls
31 lines (20 loc) · 824 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
30
31
<?php
$conto = $_POST['account'];
$ciave = $_POST['newpass'];
$validacione = $_POST['passif'];
$conexion = mysqli_connect("localhost","root","","elearningphp")or die("Error en conexión");
$registros = mysqli_query($conexion, "select user,conta from miembros where user='$conto'")or die("Error de Registros");
$reg=mysqli_fetch_array($registros);
if($validacione==0){
if($reg){ $validacione=1; echo "accertare()"; }
else if(empty($conto)){ echo "Ingrese la cuenta."; }
else{ echo "Cuenta inexistente, por favor ingrese de nuevo."; }
}
else if($validacione==1){
if($reg['conta']==$ciave){
echo "Contraseña Correcta.";
}else{
echo "Contraseña incorrecta, ingrese de nuevo.";
}
}
?>