-
Notifications
You must be signed in to change notification settings - Fork 0
/
emessage.php
225 lines (202 loc) · 11.3 KB
/
emessage.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?php
$fname='';
$email='';
$lname='';
$web='';
$successmsg='';
$errormsg='';
$emailerror='';
$weberror='';
if(empty($_POST["fname"]) || empty($_POST['lname'])){
$errormsg="Name is required";
}
else{
$fname = test_input($_POST['fname']);
if(!preg_match("/^[a-zA-Z]*$/",$fname)){
$errormsg="Only letter and whitespace allowed";
}
$lname = test_input($_POST['lname']);
if(!preg_match("/^[a-zA-Z]*$/",$lname)){
$errormsg="Only letter and whitespace allowed";
}
}
if(empty($_POST['emailid'])){
$emailerror="Email is required";
}
else{
$email=test_input($_POST['emailid']);
}
if(empty($_POST['web'])){
$weberror="Website is required";
}
else{
$web=test_input($_POST['web']);
}
if(!($fname=='') && !($lname=='') && !($email=='') && !($web==''))
{
if(filter_var($email, FILTER_VALIDATE_EMAIL)){
$name=$fname." ".$lname;
$email = $_POST['email'];
$header=$fname.$lname."<".$email.">";
$from = 'From: yoursite.com';
$to = '[email protected]';
$subject="New Customer Details";
$nmsg = "Details of Customer are as follows
Name : $name
Email : $email
Website:$web ";
if(mail("[email protected]",$subject,$nmsg,$header)){
$successmsg="Message Sent Successfully....";
}
else{
$successmsg="Mail Not Sent...We will try again";
}
}
else{
$emailerror="Invalid Email";
}
}
function test_input($data){
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href='./index.css'>
<title>
Digitery-A Place of Digital Marketing
</title>
</head>
<body>
<!-- NavBar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="font-size:22px; padding-left:2rem;">
<a class="navbar-brand" href="./index.html">
<div style="height: 100px; background-color: rgba(255,0,0,0.1);">
<div class="h-100 d-inline-block" style="width: 120px; background-color: rgba(0,0,255,.1)">
<img src="digitery.jpg" style="width:120px; height:100px; border-radius: 12px;"/>
</div>
</div></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo02" style="padding-left:2rem;">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item active" style="padding-left:2rem;">
<a class="nav-link" href="./index.html">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item" style="padding-left:2rem;">
<a class="nav-link" href="./about.html">About</a>
</li>
<li class="nav-item dropdown" style="padding-left:2rem;">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Services
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="./smm.html">Social Media Marketing</a>
<a class="dropdown-item" href="./seo.html">Search Engine Optimization</a>
<a class="dropdown-item" href="./cw.html">Content Writing</a>
</div>
</li>
<li class="nav-item" style="padding-left:2rem;">
<a class="nav-link" href="./blog.html">Blog</a>
</li>
<li class="nav-item" style="padding-left:2rem;">
<a class="nav-link" href="./contact.html">Contact</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<!-- Body Content -->
<div class="w-100 p-3" style="background-color:rgb(212, 211, 211);"><h1 style="padding-left: 30rem;font-size:62px;"><b>Your Details are With Us</b></h1></div>
<div class="w-100 p-3" style="background-color:rgb(212, 211, 211);"><h3 style="padding-left:36.5rem;font-size:21px;">Get My Free Proposal</h3></div>
<h2>
Contact Form Details & Mail Sending Confirmation
</h2>
<div class="w-100 p-3" style="padding:5rem;background-color:rgb(212,211,211);">
<table class="table table-dark">
<thead>
<tr>
<th scope="col">Your Details</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Name</th>
<td><?php echo $fname." ".$lname;?><?php echo $errormsg;?></td>
</tr>
<tr>
<th scope="row">Website</th>
<td><?php echo $web?><?php echo $weberror;?></td>
</tr>
<th scope="row">Email</th>
<td><?php echo $email;?><?php echo $emailerror;?></td>
</tr>
<th scope="row">Confirmation Sent</th>
<td><?php echo $successmsg;?></td>
</tr>
</tbody>
</table>
</div>
<!-- Footer -->
<div class="row justify-content-around" style="padding:5rem;">
<div class="col-4">
<img src="digitery.jpg" style="width:120px; height:100px; border-radius: 12px;"/>
<p>Digitery Internet Marketing Agency is a full-service digital marketing agency. Attract, Impress, and Convert more leads online and get results with Digitery.</p>
</div>
<div class="col-4" style="padding-left:7.5rem;">
<img src="digitery.jpg" style="width:240px; height:240px; border-radius: 12px;"/>
</div>
<div class="col-4">
<div style="padding-left: 15rem;">
<a href="#"><img src="fb.jpg" style=" ;border-radius: 12px;display: inline; width:50px"> </a>
<a href="#"><img src="insta.jpg" style="border-radius:12px;display: inline; width:50px"> </a>
</div>
<div style="padding-left:5rem;">
<h3>CALL +91-1234567890</h3>
<h5>Contact Us> Give Us Your Response</h5>
</div>
</div>
</div>
<footer style="background-color:#343A40; color:antiquewhite;">
<div class="w-100 p-3" style="background-color:#343A40;"><h1 style="padding-left: 20rem;font-size:52px;">Growing Businesses Since 2019</b></h1></div>
<div class="w-100 p-3" style="background-color:#343A40;"><h2 style="padding-left:17rem;font-size:32px;">Made with Favorite Heart Buttonin 12 cities around the India</h2></div>
<div class="container" style="background-color:#343A40 ;">
<div class="row">
<div class="col-md-4">
<h3>Jodhpur</h3>
<h3>Jaipur</h3>
<h3>Ajmer</h3>
<h3>Udaipur</h3>
</div>
<div class="col-md-4">
<h3>Delhi</h3>
<h3>Gurgaon</h3>
<h3>Noida</h3>
<h3>Faridabad</h3>
</div>
<div class="col-md-4">
<h3>Chennai</h3>
<h3>Bangalore</h3>
<h3>Mumbai</h3>
<h3>Lucknow</h3>
</div>
</div>
</div>
<div class="w-100 p-3" style=" color:antiquewhite;background-color:#343A40;"><h3 style="padding-left:16rem;font-size:18px;">©2019 - Thrive Internet Marketing Agency / Locations / Write For Us / Refer Thrive / Terms / Privacy Policy / Sitemap</h3></div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>