-
Notifications
You must be signed in to change notification settings - Fork 2
/
thanks.php
85 lines (76 loc) · 3.07 KB
/
thanks.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin Login Form</title>
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/fontawesome.min.css" rel="stylesheet">
<link href="assets/css/animate.css" rel="stylesheet">
<link href="assets/css/styles.css" rel="stylesheet">
<link href="assets/css/manage.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400|Open+Sans:100,300,400,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Quicksand:500" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cedarville+Cursive" rel="stylesheet">
</head>
<body>
<header class="header">
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="">COMPANY NAME</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="./">Home</a></li>
<li><a href="form2.html">Form 2</a></li>
<li><a href="form3.html">Form 3</a></li>
<li><a href="form4.html">Textarea</a></li>
<li><a href = "side.html">SideBar</a></li>
<li><a href = "jform.php">JForm</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</nav>
</header>
<div class="login-container">
<div class="col-md-offset-4 col-lg-4 col-sm-4 col-md-4">
<div class="panel panel-default">
<div class="panel-body">
<?
if(isset($_POST['submit'])) {
$fullname = $_POST['fullname'];
$lastname = $_POST['lastname'];
$email = $_POST['email'];
$pass = md5($_POST['pass']);
$file = "data.json";
$json_string = json_encode($_POST, JSON_PRETTY_PRINT);
file_put_contents($file, $json_string, FILE_APPEND);
header('Location: thanks.php');
}
?>
<p><? echo $fullname;
echo '<br>';
echo $lastname;
echo '<br>';
echo $email;
echo '<br>';
echo $pass; ?>
<p>Data Submit</p>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container-footer">© 2017. Your Company</div>
</footer>
<script src="assets/js/jquery-1.11.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
</body>
</html>