-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog_results_GMP.php
More file actions
61 lines (55 loc) · 1.45 KB
/
log_results_GMP.php
File metadata and controls
61 lines (55 loc) · 1.45 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
<?php
// Start the session
session_start();
?>
<html>
<head>
<title>OSI Questions</title>
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
<style>
font-family: helvetica;
text-align: centre;
body {
font-family: helvetica;
text-align: centre;
}
form
{
border: 5px solid red;
color: black;
font-family: helvetica;
text-align: center;
}
</style>
</head>
<body>
<?php
if ($_POST["q1"] == NULL || $_POST["q2"] == NULL ||
$_POST["q3"] == NULL || $_POST["q4"] == NULL || $_POST["q5"] == NULL)
{
header( 'Location: /GMPQuizRetry.html');
}
?>
<h1> OSI Site Induction </h1>
<br>
<?php
//echo $_GET["q1"]
if ($_POST["q1"] == "B" & $_POST["q2"] == "A" & $_POST["q3"] == "D" & $_POST["q4"] == "C"& $_POST["q5"] == "D")
{
$_SESSION["Quiz2"] = "yes";
echo '<form class = "left" action="/HACCPpowerpoint.html">
<p>You Passed GMP <br>
Continue to learn about HACCP <br> <p>
<input type="submit" value="Proceed to the HACCP powerpoint!" />
</form>';
//put in a link to the GMP Slides
} else {
echo '<form class = "left" action="/GMPpowerpoint.html">
<p> You Failed <br>
Look at the Presentation and attempt again <br> <p>
<input type="submit" value="Revise for Quiz" />
</form>';
}
?>
</body>
</html>