mirror of
https://github.com/FranP-code/Login-Form.git
synced 2025-10-12 23:52:47 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
error_reporting(0);
|
||||
|
||||
|
||||
function error($string) {
|
||||
return '<h2 class=`invalid`>'. $string . '</h2>';
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ if (isset($_POST['submit'])) {
|
||||
}
|
||||
|
||||
} else {
|
||||
echo error('The passwords doesn'. `'` . 't match');
|
||||
echo error('The passwords doesn't 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>
|
||||
@@ -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
17
logic/styles.css
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user