-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcu.php
More file actions
77 lines (72 loc) · 2.55 KB
/
cu.php
File metadata and controls
77 lines (72 loc) · 2.55 KB
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
<?php
session_start();
require_once "functions.php" ;
$con=connect_my_db();
if(isset($_POST['contact']))
{
$name=$_POST['name'];
$pno=$_POST['pno'];
$message=$_POST['message'];
$insert = "INSERT INTO messages(`name`,`pno`,`messages`) VALUES ('$name','$pno','$message')";
$insert=mysqli_query($con,$insert);
if(!$insert)
{
echo mysqli_error($con);
}
}
?>
<html>
<head>
<title>Contact Us</title>
<style>
body{ padding-bottom:2%;margin:0; background-image:url('img/bg2.jpg'); background-repeat:no-repeat; background-size:cover;position:center; height:100%;width:100%;}
</style>
</head>
<body>
<center>
<div id="contactus" class="box tabs">
<header class="conhead">
<span class="left" onclick="closetabs();"> ❌ </span>
<h1>Contact Us</h1>
</header>
<label class="yellow"> Email : vsupport@freshfarm.com </label>
<hr class="hr">
<form method="post"><br>
<div class="row">
<div class="col-25">
<label for="name">Name</label>
</div>
<div class="col-75">
<input type="text" id="name" name="name" placeholder="Your name..">
</div>
</div><br><br><br>
<div class="row">
<div class="col-25">
<label for="pno">Phone Number</label>
</div>
<div class="col-75">
<input type="text" id="pno" name="pno" placeholder="Your pno ID..">
</div>
</div><br><br><br>
<div class="row">
<div class="col-25">
<label for="message">Message</label>
</div>
<div class="col-75">
<textarea id="message" name="message" placeholder="Write Message Here.." style="height:100px"></textarea>
</div>
</div><br><br><br>
<div class="padding">
<input type="submit" class="con" style="float:left;" value="Submit" name="contact">
</div>
</form>
</div>
</center>
</body>
<script>
function closetabs()
{
location.replace("index.php")
}
</script>
</html>