-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathData_Collect.php
More file actions
31 lines (27 loc) · 1016 Bytes
/
Copy pathData_Collect.php
File metadata and controls
31 lines (27 loc) · 1016 Bytes
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
<html>
<?php
include("Credentials.php");
if(!$connection){
echo "No connection";
header("Location: https://csetplacement.cset.oit.edu/Errored_Research_Page.html");
exit();
}
else{
$Input_One = $_POST['Cybersecurity'];
$Input_Two = $_POST['Applied_Maths'];
$Input_Three = $_POST['Software_Engineering'];
$Input_Four = $_POST['Embedded_Systems'];
$Input_Five = $_POST['Data_Science'];
$Input_Six = $_POST['Computer_Engineering'];
$Time_Stamp = date(DATE_RFC2822);
$sql = "INSERT INTO user_inputs(Input1,Input2,Input3,Input4,Input5,Input6,Timestamp) VALUES('$Input_One','$Input_Two','$Input_Three','$Input_Four','$Input_Five','$Input_Six','$Time_Stamp')";
if(!mysqli_query($connection,$sql)){
header("Location: https://csetplacement.cset.oit.edu/Errored_Research_Page.html");
echo 'Values Not Collected';
echo date(DATE_RFC2822);
}
header("Location: https://csetplacement.cset.oit.edu/Submitted_Page.html");
exit();
}
?>
</html>