-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
123 lines (112 loc) · 4.98 KB
/
contact.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
include "header.php";
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PROLOG Infotech - Contact us</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="" />
<!-- css -->
<link href="https://fonts.googleapis.com/css?family=Noto+Serif:400,400italic,700|Open+Sans:300,400,600,700" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/bootstrap-responsive.css" rel="stylesheet" />
<link href="css/fancybox/jquery.fancybox.css" rel="stylesheet">
<link href="css/jcarousel.css" rel="stylesheet" />
<link href="css/flexslider.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
<!-- Theme skin -->
<link href="skins/default.css" rel="stylesheet" />
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png" />
<link rel="shortcut icon" href="ico/favicon.png" />
</head>
<body>
<section id="inner-headline">
<div class="container">
<div class="row">
<div class="span4">
<div class="inner-heading">
<h2>Contact Us</h2>
</div>
</div>
<div class="span8">
<ul class="breadcrumb">
<li><a href="index.php"><i class="icon-home"></i></a><i class="icon-angle-right"></i></li>
<li class="active">Contact</li>
</ul>
</div>
</div>
</div>
</section>
<section id="content">
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14763.42734598954!2d70.7671899!3d22.3212535!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x6020bdb7405bdde!2sPROLOG%20INFOTECH!5e0!3m2!1sen!2sin!4v1657793278778!5m2!1sen!2sin" width="100%" height="380" style="border:0;" allowfullscreen></iframe>
<?php
if(isset($_POST['submit']))
{
error_reporting(0);
include "connection.php";
$nm=$_POST['name'];
$em=$_POST['email'];
$sub=$_POST['subject'];
$msg=$_POST['message'];
$qry="insert into contact_data (name,email,message,subject) values ('$nm','$em','$sub','$msg')";
$c=mysqli_query($con,$qry);
if($c)
{
echo "<script>
alert('Our company sortly contact with you.');
</script>";
}
else
{
echo "<script>
alert('your contact details not submited.');
</script>";
}
}
?>
<div class="container">
<div class="row">
<div class="span12">
<h4>Get in touch with us by filling <strong>contact form below</strong></h4>
<form method="post" role="form" class="contactForm">
<div id="sendmessage">Your message has been sent. Thank you!</div>
<div id="errormessage"></div>
<div class="row">
<div class="span4 form-group">
<input type="text" name="name" class="form-control" id="name" placeholder="Your Name" data-rule="minlen:4" data-msg="Please enter at least 4 chars" required/>
<div class="validation"></div>
</div>
<div class="span4 form-group">
<input type="email" class="form-control" name="email" id="email" placeholder="Your Email" data-rule="email" data-msg="Please enter a valid email" />
<div class="validation"></div>
</div>
<div class="span4 form-group">
<input type="text" class="form-control" name="subject" id="subject" placeholder="Subject" data-rule="minlen:4" data-msg="Please enter at least 8 chars of subject" />
<div class="validation"></div>
</div>
<div class="span12 margintop10 form-group">
<textarea class="form-control" name="message" rows="12" data-rule="required" data-msg="Please write something for us" placeholder="Message"></textarea>
<div class="validation"></div>
<p class="text-center">
<input type="submit" class="btn btn-large btn-theme margintop10" name="submit" value="Submit message">
</p>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<?php
include "footer.php";
?>
</body>
</html>