-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog_results_HACCP.php
More file actions
56 lines (53 loc) · 1.49 KB
/
log_results_HACCP.php
File metadata and controls
56 lines (53 loc) · 1.49 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
<?php
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["Viruses"] == NULL || $_POST["Glass"] == NULL || $_POST["Oil"] == NULL)
{
header( 'Location: /HACCPQuizRetry.html');
}
?>
<h1> OSI Site Induction </h1>
<br>
<?php
if ($_POST["q1"] == "A" & $_POST["q2"] == "D" & $_POST["q3"] == "B" & $_POST["Viruses"] == "Biological" & $_POST["Glass"] == "Physical" & $_POST["Oil"] == "Chemical")
{
$_SESSION["Quiz3"] = "yes";
echo '<form class = "left" action="/WHSpowerpoint.html">
<p>You Passed HACCP <br>
Continue to learn about WHS <br> <p>
<input type="submit" value="Proceed to the WHS powerpoint!" />
</form>';
//put in a link to the GMP Slides
} else {
echo '<form class = "left" action="/HACCPpowerpoint.html">
<p> You Failed <br>
Look at the Presentation and attempt again <br> <p>
<input type="submit" value="Revise for Quiz" />
</form>';
}
?>
</body>
</html>