-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontactus.php
87 lines (70 loc) · 2.21 KB
/
contactus.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
86
87
<?php
include('includes/connection.php');
if(isset($_POST['submit'])){
$name=$_POST['name'];
$email=$_POST['email'];
$message=$_POST['message'];
$is_exe = mysqli_query($con, "INSERT INTO bugs (`name`, `email`, `message`) VALUES ('$name', '$email', '$message')");
$message1 = $is_exe?'Bug Submission Sucessfully': 'Bug Submission Failed';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Live Compalin System</title>
<link rel="stylesheet" href="css/index.css">
<script>
function show() {
var x = document.getElementById("nav");
if (x.className === "wrap") {
x.className += " unwrap";
} else {
x.className = "wrap";
}
}
</script>
</head>
<body>
<header class="header">
<a href="index.php" class="logo">Welcome</a>
<img src="images/logo.png" width="30px" height="30px" onclick="show()" />
<nav id='nav' class="wrap">
<div class="header-right">
<a href="user/login.php">User Login</a>
<a href="government/gov.php">Government Login</a>
<a href="contactus.php">Contact Us</a>
<a href="about.php">About Us</a>
<a href="admin/admin.php">Admin</a>
</div>
</nav>
</div>
</header>
<form method="POST">
<h3>Register Your bugs Here</h3>
<br>
<input type="text" class="input" placeholder=" Name" name="name" required>
<br>
<input type="text" class="input" placeholder=" Email" name="email" required>
<br>
<input type="text" class="input" placeholder=" Write Your message Here" name="message" required>
<br>
<br>
<button class="btn" name="submit" type="submit">Submit</button>
<br>
<center>
<?php
if(isset($message1)){
echo '<p style="color:orange;">'.$message1.'</p>';
}
?>
</center>
<br>
</form>
</div>
<footer class="footer">
<p>All Right Reversed © 2021</p>
</footer>
</body>
</html>