-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreateAccountController.php
59 lines (50 loc) · 1.28 KB
/
createAccountController.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
<?php
session_start();
include "DB.php";
include('header.php');
?>
<html>
<body>
<?php
$email = $_POST["email"];
$password = $_POST["password"];
$parentFirstName = $_POST["parentFirstName"];
$parentLastName = $_POST["parentLastName"];
$yearJoined = $_POST["yearJoined"];
$streetAddress = $_POST["streetAddress"];
$city = $_POST["city"];
$state = $_POST["state"];
$zip = $_POST["zip"];
$homePhone = $_POST["homePhone"];
$workPhone = $_POST["workPhone"];
$cellPhone = $_POST["cellPhone"];
$accessLevel = $_POST["accessLevel"];
$overallAFD = $_POST["overallAFD"];
$currentAFD = $_POST["currentAFD"];
#$email
#$password
#$parentFirstName
#$parentLastName
#$yearJoined
#$streetAddress
#$city
#$state
#$zip
#$homePhone
#$workPhone
#$cellPhone
#$accessLevel
#$overallAFD
#$currentAFD
$query = "INSERT INTO families VALUES ('','$email', SHA('$password'), '$parentFirstName', '$parentLastName', '$yearJoined', '$streetAddress', '$city', '$state', '$zip', '$homePhone', '$workPhone', '$cellPhone', '$accessLevel', '$overallAFD', '$currentAFD');";
mysqli_query($db, $query);
include('siteNavigator.php');
echo "<H1>You have successfully registered the " . $parentLastName . " family.</H1>";
?>
<!-- Page info goes below-->
</div> <!-- Page info goes above-->
<?php
include('footer.php');
?>
</body>
</html>