-
Notifications
You must be signed in to change notification settings - Fork 0
/
property_form_success.php
217 lines (207 loc) · 6.63 KB
/
property_form_success.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Free House Sale Template - Real Estate web design - Free Html Website Templates</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function ctck()
{
var sds = document.getElementById("dum");
if(sds == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");}
}
</script>
</head>
<body>
<div id="header"></div>
<div id="navigation">
<ul>
<center>
<li><a href="index.php">HOME</a></li>
<li><a href="property_listing.php">PROPERTY LISTINGS</a></li>
<li><a href="about.php">ABOUT US</a></li>
<li><a href="contact.php">CONTACT US</a></li>
<li><a href="feedback.php">FEEDBACK</a></li>
</center>
</ul>
</div>
<div id="content"><table width="928" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div id="content_top">
<div id="main_content">
<h1>Message Successfull</h1>
<h3>We appieciate your feedback</h3>
<h3><?php
$host="localhost";
$username="root";
$password="";
$db_name="property";
$tbl_name="customer";
//mysqli_connect("$host","$username","$password")or die("cannot connect");
$con=mysqli_connect("localhost:3306","root","","property");
mysqli_select_db($con,"$db_name")or die("cannot select DB");
$name = $_POST['name'];
$mobile_phone = $_POST['mobile_phone'];
$cus_email = $_POST ['cus_email'];
$date = $_POST['date'];
$time = $_POST['time'];
$reason = $_POST['reason'];
$id_property = $_POST['id_property'];
//echo
$sql = "INSERT INTO $tbl_name(id_property, name, mobile_phone, cus_email, date, time, reason) VALUE('$id_property','$name', '$mobile_phone', '$cus_email', '$date', '$time', '$reason')";
//die();
$result = mysqli_query($con,$sql);
if($result)
{
echo "<p><center>";
echo "";
echo "<br>";
echo "<a href='index.php'><img src='images/success.png'></a>";
}
else
{
echo "Error";
echo mysql_error();
}
?></p>
<div id="house_sales">
</div>
</div>
<div id="find">
<h2>Find Your House</h2>
<h3>Over 3 million properties</h3>
<form name="form1" method="post" action="property_success.php">
<table width="265" border="0" cellpadding="2" cellspacing="0" class="black">
<tr>
<td>Type of Property </td>
<td>:</td>
<td><select name="search" id="select">
<option>......</option>
<option>Condominium</option>
<option>Terraced House</option>
<option>Shop / Office</option>
<option>Bungalow House</option>
<option>Hotel / Resort</option>
<option>Semi-Detached House</option>
<option>Penthouse</option>
</select></td>
</tr>
<tr>
<td>Beds :</td>
<td>:</td>
<td><select name="search" id="select">
<option>...</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
</select></td>
</tr>
<tr>
<td>Baths :</td>
<td>:</td>
<td><select name="search" id="select">
<option>...</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
</select></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input name="button" type="submit" class="find" id="button" value=""></td>
</tr>
</table>
</form>
</div>
</div>
<div id="find">
<h2>Leave Your Message</h2>
<h3>Let Me know </h3>
<form name="form1" method="post" action="message_success.php">
<table width="402" border="0" cellpadding="2" cellspacing="0" class="black">
<tr>
<td width="55">Reason </td>
<td width="3">:</td>
<td width="332"><select name="reason" type="text" width="333">
<option>I am looking to sell a Property</option>
<option>I am looking to rent a Property</option>
<option>I am looking to let a Property</option>
<option>I have another enquiry</option>
</select></td>
</tr>
<tr>
<td>Name :</td>
<td>:</td>
<td><input name="name" type="text" width="333"></td>
</tr>
<tr>
<td>Contact :</td>
<td>:</td>
<td><input name="no_fon" type="text" width="333"></td>
</tr>
<tr>
<td>Email :</td>
<td>:</td>
<td><input name="email" type="text" width="333"></td>
</tr>
<tr>
<td>Message </td>
<td>:</td>
<td><textarea name="message" width="333"></textarea></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input name="button" type="submit"></td>
</tr>
</table>
</form>
</div>
<div id="content_bottom">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div class="features">
<h4 style="background:url(images/services.jpg) left center no-repeat;">Profile</h4>
<h3 style="padding-left:25px;">About me </h3>
<table width="360" border="0">
<tr>
<td width="154"><img src="images/mypic.jpeg" alt="" width="149" height="155"></td>
<td width="190"><p>Subhasish Das</p>
<p>BTech C.S.E</p>
<p>https://github.com/subhasishdas</p>
<p>subhasish9871@gmail.com</p>
<p>VIT University Vellore</p>
<p></p></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div>
<div id="fotter">
<div class="design_info" id="footer">Designed by Subhasish</a>
<script type="text/javascript">
document.onload = ctck();
</script>
</div>
<div class="copyrights">Copyright Information Goes Here. All Rights Reserved.</div>
</div>
</body>
</html>