-
Notifications
You must be signed in to change notification settings - Fork 0
/
borrowlogin.php
92 lines (83 loc) · 2.83 KB
/
borrowlogin.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="bootstrap.css">
<title>Library Database</title>
</head>
<?php
//include DatabaseHelper.php file
require_once('databasehelper.php');
//instantiate DatabaseHelper class
$database = new DatabaseHelper();
//Grab variables from POST request
$language = 0;
if(isset($_POST['language']))
$language = trim($_POST['language']);
$item_id = 0;
if(isset($_POST['item_id']))
$item_id = trim($_POST['item_id']);
?>
<body>
<div class='container-fluid'>
<!-- NAVBAR -->
<header>
<div class='row justify-content-center align-items-center'>
<div class='col-md-6 col-sm-0'>
</div>
<div class='col-md-2 col-sm-3'>
<a href='index.php'>
Browse
</a>
</div>
<div class='col-md-2 col-sm-4'>
<a href='mybookslogin.php'>
MyBooks
</a>
</div>
<div class='col-md-2 col-sm-3'>
<a href='register.php'>
Register
</a>
</div>
</div>
</header>
<main>
<!-- PAGE TITLE -->
<div class = 'row justify-content-center title'>
<div class='col-12'>
<h1>[ Library Database ]</h1>
</div>
</div>
<!-- REGISTER FORM -->
<form id = "registerform" method = "post" action = "borrowverify.php">
<?php
echo '<input type="text" name="item_id" hidden value="' . $item_id . '"><input type="text" name="language" hidden value ="' . $language . '">';
?>
<div class='row justify-content-center'>
<div class='col-md-1 col-sm-12 text-center'>
<label for = "emaillabel">Email: </label>
</div>
<div class='col-md-5 col-sm-12 text-center'>
<input type="email" id = "email" name = "email">
</div>
</div>
<div class='row justify-content-center'>
<div class='col-md-1 col-sm-12 text-center'>
<label for = "passlabel">Password<br>(no spaces!): </label>
</div>
<div class='col-md-5 col-sm-12 text-center'>
<input type="password" id = "password" name = "password">
</div>
</div>
<div class='row justify-content-center'>
<div class='col-md-4 col-sm-12 text-center'>
<input type="submit" name="submit" value="Login and Borrow Book">
</div>
</div>
</form>
</main>
<footer><br><br><br><br></footer>
</body>
</html>