-
Notifications
You must be signed in to change notification settings - Fork 2
/
report2Original.php
63 lines (44 loc) · 1.4 KB
/
report2Original.php
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Alien Abductions</title>
<link rel="stylesheet" href="styles.css" type="text/css" />
</head>
<body>
<?php
include('header.html');
?>
<div id="wrap">
<div class="pagewrapper">
<div class="innerpagewrapper">
<div class="page">
<div class="content">
<!-- CONTENT -->
<h3>Report an Abduction</h3>
<p>Thanks for reporting an abduction! </p>
<?php
include('dbconnect.php');
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$city = $_POST['city'];
$state = $_POST['state'];
$date = $_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];
echo "<p>$firstname $lastname $date $city $state</p>";
$query = "INSERT INTO abductions (firstname, lastname, date, city, state) VALUES ('$firstname', '$lastname', '$date', '$city', '$state');";
echo "<p>QUERY $query</p>";
$result = mysqli_query($db, $query)
or die("Error Querying Database");
?>
</form>
<!-- END CONTENT -->
</div>
<?php
include('SIDEnFOOTER.html');
?>
</div>
</div>
</div>
</div>
</body>
</html>