-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconcern.php
62 lines (37 loc) · 1.25 KB
/
concern.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
<!--PABALLO MOLATI 1818416-->
<!DOCTYPE html>
<head>
<meta charset="uft-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
<title> Sk'haftine contact us page </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">Contact US</a></li>
<li><a href="home_page.html"> Home </a></li>
</ul>
</div>
<section>
<?php
$concern=$_POST['message'];
$number=$_POST['phone_number'];
$clients_status=$_POST['user'];
$dbServername = "localhost";
$dbUsername = "root";
$dbPassword = "";
$dbName = "skhafthini";
$aVar = mysqli_connect($dbServername,$dbUsername,$dbPassword,$dbName);
$query="INSERT INTO concerns VALUES
('".$number."','".$clients_status."','".$concern."')";
$query = mysqli_query($aVar,$query)or die('Error,insert query failed');
echo "<h1>Message Sent....</h1>";
?>
</section>
<footer>
<p>Copyright©:Sk'haftini Web App 2020 | Designed by Paballo Molati</p>
</footer>
</body>
</html>