-
Notifications
You must be signed in to change notification settings - Fork 0
/
come.php
70 lines (53 loc) · 1.64 KB
/
come.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
<div class="row jkl">
<div class="mm bor">
<div align="center" class="col-md-12 small1" >
<div class="mob1" style="background: white;
padding: 0px 0px;">
<div style=" text-align: center;
border: 1px solid black;
/*padding: 10px;*/
background-color: white;
height: 356px;">
<form action="" method="post">
<h1 class="come" style="font-family: 'Great Vibes', cursive; margin-top: 15px;">Come Away with Me</h1>
<p style="font-weight:300; margin-top: 7px;">to a World of Style Musings, Wanderlust and Lifestyle<br> Inspirations.</p>
<br>
<input class="mob2" style="
height: 40px;
text-align: center;
font-size: 24px;
margin-bottom: 15px; display: block;
margin: auto;" type="text" name="firstname" placeholder="First Name"><br>
<input class="mob2" style="
height: 40px;
text-align: center;
font-size: 24px;
margin-bottom: 15px; display: block;
margin: auto;" type="text" name="email" placeholder="Email Address">
<br>
<input class="mob2" style=" width: 50%;
height: 40px;
display: block;
margin: auto;
background: #fcd5d5;
border: none;
border-radius: 7px;" type="submit" name="sub" value="Subscribe Now">
</form>
</div>
</div>
</div>
</div>
</div>
<?php
if(isset($_POST['sub'])){
$nm=$_POST["firstname"];
$email=$_POST["email"];
$sub="Subscription Request From ".$nm;
$msg="Name: ".$nm."
Email: ".$email;
$x=mail("[email protected]", $sub, $msg);
if($x){
echo "<script> alert('Subscribed'); </script>";
}
}
?>