-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunoctave.php
More file actions
82 lines (75 loc) · 2.65 KB
/
runoctave.php
File metadata and controls
82 lines (75 loc) · 2.65 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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>Lynbrook FTC</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/custom.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500" rel="stylesheet">
</head>
<body>
<?php $sex=$_POST["sex"]; ?>
<?php $age=$_POST["age"]; ?>
<?php $address=$_POST["address"]; ?>
<?php $educationm=$_POST["educationm"]; ?>
<?php $educationf=$_POST["educationf"]; ?>
<?php $studytime=$_POST["studytime"]; ?>
<?php $supp=$_POST["supp"]; ?>
<?php $failedclasses=$_POST["failedclasses"]; ?>
<?php $extra=$_POST["extra"]; ?>
<?php $higher=$_POST["higher"]; ?>
<?php $famrel=$_POST["famrel"]; ?>
<?php $freetime=$_POST["freetime"]; ?>
<?php $friends=$_POST["friends"]; ?>
<?php $absent=$_POST["absent"]; ?>
<?php
$myfile = fopen("octaveinput.txt", "w");
fwrite($myfile, $sex);
fwrite($myfile, ",");
fwrite($myfile, $age);
fwrite($myfile, ",");
fwrite($myfile, $address);
fwrite($myfile, ",");
fwrite($myfile, $educationm);
fwrite($myfile, ",");
fwrite($myfile, $educationf);
fwrite($myfile, ",");
fwrite($myfile, $studytime);
fwrite($myfile, ",");
fwrite($myfile, $supp);
fwrite($myfile, ",");
fwrite($myfile, $failedclasses);
fwrite($myfile, ",");
fwrite($myfile, $extra);
fwrite($myfile, ",");
fwrite($myfile, $higher);
fwrite($myfile, ",");
fwrite($myfile, $famrel);
fwrite($myfile, ",");
fwrite($myfile, $freetime);
fwrite($myfile, ",");
fwrite($myfile, $friends);
fwrite($myfile, ",");
fwrite($myfile, $absent);
?>
<div class = "section background">
<div class="section no-pad-bot" id="index-banner">
<div class="container">
<h1 class="header center title">Underage Alcohol Consumption</h1>
<div class="row center">
<form action="http://localhost/check.php" class = "form-text white-text" method = "post"><input type="Submit" value = "View my Results" class = "finalbutton submitbutton" id = "done">
</form>
</div>
<div class="container">
<div class="section">
<script>
</script>
</div>
</div>
</div>
</div>
</div>
</body>
</html>