-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest_for_rent.php
164 lines (160 loc) · 7.1 KB
/
request_for_rent.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
<?php include('header.php'); ?>
<br><br><br><br>
<style>
.button{
background: transparent;
border: none;
outline: none;
color: #fff;
background: #00cc00;
padding: 10px 20px;
cursor: pointer;
border-radius: 6px;
height: 40px;
width: 200px;
font-size: 25px;
}
.com{
border-radius: 6px;
height: 40px;
width: 300px;
}
.select{
border-radius: 6px;
width: 300px;
height: 40px;
}
#combbrief{
border-radius: 6px;
}
</style>
<div id="services" class="services-area area-padding" style="background-color: #c2c2a3";>
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="section-headline services-head text-center">
<h2>TO RENT A PROPERTY</h2>
<br>
<br>
<h1 style="color: green">
<?php
if(isset($_POST['insert']))
{
$known=$_POST['tgPWrent'];
$fullname=$_POST['trpFullname'];
$req=$_POST['tgPWType'];
$furniture=$_POST['tgpFUR'];
$budjet=$_POST['tgWbudjet'];
$age=$_POST['tgPage'];
$proff=$_POST['tWPoR'];
$comname=$_POST['socityWrentcn'];
$designation=$_POST['tSdesig'];
$nopif=$_POST['fullNO'];
$specificreq=$_POST['asReq'];
$phoneno=$_POST['tgPcontact'];
$email=$_POST['tgPRemail'];
$con = mysqli_connect('localhost','root','','sas_db');
$quy = "INSERT INTO `want_property_for_rent`(`wpr_known`, `wrp_fullname`, `wpr_req`, `wpr_furniture`, `wpr_budjet`, `wrp_age`, `wrp_profession`, `wrp_companyname`, `wrp_designation`, `wrp_family_persons`, `wrp_specificreq`, `wrp_contactno`, `wrp_email`) VALUES ('$known','$fullname','$req','$furniture','$budjet','$age','$proff','$comname','$designation','$nopif','$specificreq','$phoneno','$email')";
$run = mysqli_query($con,$quy);
if ($run == TRUE)
{
echo "Your RENTAL Requirements is Submitted.........!";
}
else
{
echo "Error! In the Insertion";
}
}
?>
</h1>
</div>
<br>
<br>
<div>
<form action="<?php $_PHP_SELF ?>" method="post" name="insert">
<table width="1000px" height="1000px" align="center">
<tr>
<td>How to Known <span style="color: red;">*</span></td>
<td><select name="tgPWrent" class="select">
<option value="">-SELECT-</option>
<option value="website">WebSite</option>
<option value="friends">Friends</option>
<option value="company">Company</option>
</select></td>
</tr>
<tr>
<td>Full Name <span style="color: red;">*</span></td>
<td><input type="text" name="trpFullname" class="com"></td>
</tr>
<tr>
<td>Requirement <span style="color: red;">*</span></td>
<td><select name="tgPWType" class="select">
<option value="">-SELECT-</option>
<option value="1BHK">1BHK</option>
<option value="2BHK">2BHK</option>
<option value="3BHK">3BHK</option>
<option value="4BHK">4BHK</option>
<option value="5BHK">5BHK</option>
<option value="Villa">Villa</option>
<option value="Banglow">Banglow</option>
<option value="other">Other</option>
</select></td>
</tr>
<tr>
<td>Furniture <span style="color: red;">*</span></td>
<td><input type="radio" name="tgpWFUR" value="furnished" id="">Furnished <input type="radio" name="tgpFUR" value="semi-furnished" id="">Semi-Furnished <input type="radio" name="tgpFUR" value="basic" id="">Basic</td>
</tr>
<tr>
<td>Monthaly Rent Budjet <span style="color: red;">*</span></td>
<td><input type="text" name="tgWbudjet" class="com" required/></td>
</tr>
<tr>
<td>Age <span style="color: red;">*</span></td>
<td><input type="number" name="tgPage" class="com" required/></td>
</tr>
<tr>
<td>Profession <span style="color: red;">*</span></td>
<td><select name="tWPoR" class="select">
<option value="">-SELECT-</option>
<option value="business">Business</option>
<option value="GovermentService">Govt Service</option>
<option value="PrivateService">Private Service</option>
<option value="other">Other</option>
</select></td>
</tr>
<tr>
<td>Company Name <span style="color: red;">*</span></td>
<td><input type="text" name="socityWrentcn" class="com" required/></td>
</tr>
<tr>
<td>Designation<span style="color: red;">*</span></td>
<td><input type="text" name="tSdesig" class="com" required/></td>
</tr>
<tr>
<td>Number Of Person in Family <span style="color: red;">*</span></td>
<td><input type="text" name="fullNO" class="com" required/></td>
</tr>
<tr>
<td>Any Specific Requirement <span style="color: red;">*</span></td>
<td><textarea name="asReq" id="tgSpecificreq" cols="30" rows="10"></textarea></td>
</tr>
<tr>
<td>Contact Number <span style="color: red;">*</span></td>
<td><input type="number" name="tgPcontact" class="com" required/></td>
</tr>
<tr>
<td>Email-ID <span style="color: red;">*</span></td>
<td><input type="email" name="tgPRemail" class="com" required/></td>
</tr>
<tr>
<td><input type="reset" name="rgr1" value="Reset" class="button" /></td>
<td><input type="submit" name="insert" value="Submit" class="button" /></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<?php include('footer.php'); ?>