-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.php
80 lines (43 loc) · 1.33 KB
/
index2.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
<!--PABALLO MOLATI 1818416-->
<!DOCTYPE html>
<head>
<meta charset="uft-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
<title> link tp php</title>
<link rel="stylesheet" type="text/css" href="thestyle.css">
</head>
<body>
<div class="header">
<h1>SK'HAFTINI WEB APP</h1>
<ul>
<li><a class="active2" href="#">Administrator site</a></li>
<li><a href="home_page.html"> Home </a></li>
</ul>
</div>
<section>
<?php
echo "<h1>account created!</h1>";
$dbServername = "localhost";
$dbUsername = "root";
$dbPassword = "";
$dbName = "skhafthini";
$conn = mysqli_connect($dbServername,$dbUsername,$dbPassword,$dbName);
if(isset($_POST['submit']))
{
$phone_number = $_POST['phone_number'];
$password = $_POST['password'];
$address = $_POST['address'];
$email = $_POST['email'];
$query ="insert into user_client (phone_number,password,address,email) values ( $phone_number, $password, $address, $email)";
if(mysql_query($query))
{
echo "<h4>Account created</h4>";
}
}
?>
</section>
<footer>
<p>Copyright©:Sk'haftini Web App 2020 | Designed by Paballo Molati</p>
</footer>
</body>
</html>