Terminado el HTML y CSS de las paginas de ERROR y de SUCCESS. Añadida la pagina de Notion al proyecto

This commit is contained in:
2021-05-21 19:13:19 -03:00
parent 9b8a533548
commit 9e76b31c6f
10 changed files with 788 additions and 18 deletions

View File

@@ -49,4 +49,18 @@ if (isset($_POST['submit'])) {
echo backToPreviusPage(3, '../login.html');
}
?>
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ERROR</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
</body>
</html>

View File

@@ -1,5 +1,8 @@
<?php
error_reporting(0);
function error($string) {
return '<h2 class=`invalid`>'. $string . '</h2>';
}

View File

@@ -35,7 +35,7 @@ if (isset($_POST['submit'])) {
}
} else {
echo error('The passwords doesn'. `'` . 't match');
echo error('The passwords doesn&#039t match');
echo backToPreviusPage(3, '../register.html');
}
@@ -49,4 +49,18 @@ if (isset($_POST['submit'])) {
echo backToPreviusPage(3, '../register.html');
}
?>
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ERROR</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
</body>
</html>

View File

@@ -4,26 +4,18 @@ function addToDB($user, $password) {
require './sql/connection.php';
$add = $connect -> prepare('insert into users (user, pass) values (?, ?)');
echo 'paso 1';
$add -> bindParam(1, $user, PDO::PARAM_STR);
echo 'paso 2';
$add -> bindParam(2, $password, PDO::PARAM_STR);
echo 'paso 3';
$add -> execute();
echo 'paso 4';
}
function verifyDB($user, $password) {
require './sql/connection.php';
$verify = $connect -> prepare('select * from users where (user, pass) = (?, ?)');
echo 'paso 1';
$verify -> bindParam(1, $user, PDO::PARAM_STR);
echo 'paso 2';
$verify -> bindParam(2, $password, PDO::PARAM_STR);
echo 'paso 3';
$verify -> execute();
echo 'paso 4';
return $verify -> fetchAll();
}

17
logic/styles.css Normal file
View File

@@ -0,0 +1,17 @@
html {
height: 100%;
background-color: rgb(177, 65, 31);
font-family: Arial, Helvetica, sans-serif;
user-select: none;
}
h2 {
margin: 30px;
color: white;
}
h3 {
margin: 30px;
color: #f4f4f4;
}