-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.php
93 lines (54 loc) · 2.02 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
<?php
ob_start();
session_start();
?>
<html>
<head>
<link rel="stylesheet" href="form.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<link rel="stylesheet" type="text/css" href="style.css"/>
<script type="text/javascript" src="jquery.js" language="javascript" charset="utf-8">
</script>
<script type="text/javascript" src="main.js" language="javascript" charset="utf-8">
</script>
<style type='text/css'>
#contact{
position: relative;
color: #ffffff;
background: url(images/templatemo_menu_button_right.png) bottom right no-repeat;
}
</style>
</head>
<body>
<?php
include("header.php");
?>
<div id="ct"></div>
<div id="content">
<form action='contact.php' method='post' class='cssform' id='suggestion' >
<fieldset style="width:600px;" >
<legend>Suggestion</legend>
<p> <label><span class='title'>Name</span></label><input type='text' name='name' id='name'><span class="Error">Required</span></p>
<p> <label><span class='title'>Email:</label></span><input type='text' name='email' id='email'><span class="Error">required</span></p>
<p> <label><span class='title'>Place</label></span><input type='text' name='place'></p>
<p> <label><span class='title'>Suggestion</span></label><textarea rows='10' cols='10' name='suggestion' ></textarea><span class="Error">This Field cannot be left blank</span></p>
<p class="heading" align="left">Submit:</p>
<p><input type="submit" value="SUBMIT" /> <input type="reset" value="RESET" /></p>
</fieldset>
</form>
</div>
<div id="cb"></div>
<?php
include("footer.php");
?>
<?php
if(isset($_POST['name'])){
$name=$_POST['name'];
$email=$_POST['email'];
$place=$_POST['place'];
$suggestion=$_POST['suggestion'];
$str="Feedbak form filled by ".$name." with email_id:".$email." lives at ".$place." suggested - ".$suggestion;
mail("[email protected]","FeedBack",$str );
}
?>
</body>
</html>