-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
59 lines (53 loc) · 1.82 KB
/
Copy pathindex.php
File metadata and controls
59 lines (53 loc) · 1.82 KB
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
<?php
session_start();
if ($_GET['logout']) session_unset();
if ($_SESSION['verifiedUser']) header("Location: https://gradephd.herokuapp.com/user.php");
else session_unset();
?>
<html>
<body>
<link rel="stylesheet" href="styles/global.css">
<div class='topbar'>
<button class="button topRight" onclick="window.location.href='login.php'">Sign In</button>
<button class="button topRight" onclick="window.location.href='login.php'">Sign Up</button>
</div>
<div class='container'>
<center>
<h1>Welcome to GradePhD</h1>
<h3>Search for a class:</h3>
<form action='/search.php' method='post'>
<div class="left">Course Number: <br>
Semester: <br>
Professor: <br>
</div>
<div class="right">
<input class = 'textinput' type='text' name='coursenum' placeholder='18-100' pattern="[a-zA-Z0-9!@#$%^-*_|]{1,25}" required>
<br>
<select class='textinput' name='semester'>
<option value='F17'>F17</option>
<option value='S18'>S18</option>
<option value='F18'>F18</option>
<option value='S19'>S19</option>
<option value='F19'>F19</option>
<option value='S20'>S20</option>
</select>
<br>
<input type='text' class='textinput' name='prof' placeholder='Sullivan' pattern="[a-zA-Z0-9!@#$%^-*_|]{1,25}" required>
<br>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<input class='button' type='submit' value='Search'>
</form>
</center>
</div>
</body>
<?php
echo "<center>".$_GET["error"]."</center>";
?>
</html>