-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.php
155 lines (137 loc) · 6.17 KB
/
registration.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
<?php
if(isset($_POST['submit']))
{
$name = $_POST['name'];
$visitor_email = $_POST['email'];
$visitor_mobile = $_POST['phone'];
$designation = $_POST['designation'];
$institution = $_POST['institution'];
$message = $_POST['message'];
$subject ="Stroke Update 2019";
$from = $visitor_email;
// $from="";
$to="[email protected]";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .= "To: ".$to." <".$to.">\r\n";
$headers .= "From: ".$name." <".$from.">\r\n";
$headers .= "Reply-To: ".$name." <".$from.">\r\n";
$headers .= "Return-Path: ".$name." <".$from.">\r\n";
$message='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body,
td,
th {
/* font-family: Geneva, Arial, Helvetica, sans-serif;*/
font-family: Oxygen, Helvetica Neue, Arial, sans-serif !important;
font-size: 14px;
}
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.even {
background-color: #e4e3e3;
}
</style>
</head>
<body>
<div>
<table width="1000" border="1" align="center" cellpadding="0" cellspacing="0" style=" border-radius: 5px;border-color:#0076BE;bgcolor:#FFFFFF">
<tbody>
<tr>
<td width="1000" height="50">
<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%" style="border-radius: 5px;">
<tbody>
<tr height="12">
<td width=" " height=" " bgcolor="#6686ff"><img src="images/mail-banner.jpg" /> </td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td height="50">
<table width="95%" border="0" align="center" cellpadding="5" style="border-radius: 5px;" cellspacing="2">
<tr>
<td align="left" colspan="3"><span style="color: #000000; border-bottom:#999999 1px solid;"><strong><h3>Here are the details of the person registered for the conference</h3></strong></span></td>
</tr>
<tr class="even" style="background-color: #e4e3e3;">
<td align="left" style="width :20%"><strong>Name</strong>
</td>
<td align="left" style="width :5%"><strong>:</strong>
</td>
<td align="left"><strong>'.$name.'</strong>
</td>
</tr>
<tr>
<td align="left" style="width :20%"><strong>Email ID</strong>
</td>
<td align="left" style="width :5%"><strong>:</strong>
</td>
<td align="left"><strong>'.$visitor_email.'</strong>
</td>
</tr>
<tr class="even" style="background-color: #e4e3e3;">
<td align="left" style="width :20%"><strong>Mobile</strong>
</td>
<td align="left" style="width :5%"><strong>:</strong>
</td>
<td align="left"><strong>'.$visitor_mobile.'</strong>
</td>
</tr>
<tr>
<td align="left" style="width :20%"><strong>Speciality</strong>
</td>
<td align="left" style="width :5%"><strong>:</strong>
</td>
<td align="left"><strong>'.$designation.'</strong>
</td>
</tr>
<tr class="even" style="background-color: #e4e3e3;">
<td align="left" style="width :20%"><strong>Appointment Date</strong>
</td>
<td align="left" style="width :5%"><strong>:</strong>
</td>
<td align="left"><strong>'.$institution.'</strong>
</td>
</tr>
<tr class="even" style="background-color: #e4e3e3;">
<td align="left" style="width :20%"><strong>Message</strong>
</td>
<td align="left" style="width :5%"><strong>:</strong>
</td>
<td align="left"><strong>'.$message.'</strong>
</td>
</tr>
<tr>
<td align="left">
</td>
</tr>
<tr>
<td align="left" colspan="3" style="border-bottom:#999999 1px solid"> </td>
</tr>
<tr>
<td align="left" colspan="3">Have a question? <strong>Contact us</strong>. Do not reply to this email.</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
';
mail( $to,$subject,$message,$headers);
//done. redirect to thank-you page.
header('Location: thank-you.html');
}
?>