-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselect.php
More file actions
92 lines (69 loc) · 2.11 KB
/
select.php
File metadata and controls
92 lines (69 loc) · 2.11 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
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
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
session_start();
if(!isset($_SESSION['username'])){
header('Location:index1.php');
exit();
}
?>
<html>
<head>
<meta charset="UTF-8">
<title>selection Form</title>
<link rel="stylesheet" type="text/css" href="css/homestyle.css">
</head>
<body>
<header>
<nav>
<div class="main_wrapper">
<footer>
<a href="index1.php"> HOME</a>
<br>
<br>
<a href="logout1.php"> LOGOUT</a></footer>
<center><h2></h2></center>
</div>
</nav>
</header>
<div class="main_login">
<center>
<form class="select" action="" method="post">
<h4 id="head"> WELCOME <?php echo $_SESSION['username'];?></h4>
<br>
<br>
TUTORIAL:
<button type="submit" name="submit">SELECT</button>
<br>
<br>
PRACTICE:
<button type="submit" name="submit1">SELECT</button>
<br>
<br>
TEST:
<button type="submit" name="submit2">SELECT</button>
<br>
<br>
PERIODIC TABLE:
<button type="submit" name="submit3">SELECT</button>
</form>
</center>
</div>
</body>
</html>
<?php
if(isset($_POST['submit1'])){
header('Location:practice.php');
}
if(isset($_POST['submit2'])){
header('Location:testSelType.php');}
if(isset($_POST['submit'])){
header('Location:tutorial.php');
}
if(isset($_POST['submit3'])){
header('Location:periodictablechart.php');
}
?>