J'ai fais une base de donnée qui contient Location, prix, type, id
Je voudrai que lorsque j'écris dans mon formulaire de recherche composé des champs ( Type et Location ) et que j'appuis sur le bouton rechercher qu'il me redirige vers une page où les résultats correspondent au élément écrites dans le formulaire de recherche s'il vous plaît et qu'il affiche Type, Localisation, Prix.
Pouvez vous m'aidez s'il vous plaît ?
membre.php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <script> function Swap( div_){ var Obj = document.getElementById( div_); if( Obj){ if( Obj.style.display=="") Obj.style.display="none"; else Obj.style.display=""; } } </script> <?php session_start(); if (!isset($_SESSION['login'])) { header ('Location: membre.php'); exit(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Agence Martinique</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="css/layout.css" rel="stylesheet" type="text/css" /> <link href="css/forms.css" rel="stylesheet" type="text/css" /> <link href="css/Sanstitre-2.css" rel="stylesheet" type="text/css" /> <script src="js/jquery-1.1.3.1.pack.js" type="text/javascript"></script> <link rel="stylesheet" href="js/jquery.tabs.css" type="text/css" media="print, projection, screen"> </head> <body> <div id="wrap"> <div id="topbar"> <ul> <li class="current"><a href="membre.php">Acceuil</a></li> <li><a href="#">A propos</a></li> <li></li> <li></li> <li></li> </ul> </div> <div id="header"> <div id="sitename"> <div id="sitename"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Logo','','images/logo.png',1)"><img src="images/logo.png" alt="" width="101" height="109" id="Logo" /></a> </div> <p> </p> </div> <div id="useractions"> <div id="headings"> </div> <div id="login"> <div id="loginform"> Bienvenue <?php echo htmlentities(trim($_SESSION['login'])); ?> !<br /> <a href="deconnexion.php">Déconnexion</a> </div> </div> </div> </div> <div id="content"> <div id="home_main"> <div id="search"> <div class="tab"> <h2>Rechercher une propriété pour réservation</h2> </div> <div class="container"> <form id="form1" action="#"> <table class="search_form" style="width:100%; border:none;"> <tr> <td width="10%" class="label">Location</td> <td colspan="3"><label> <input type="text" name="location" id="location" class="text longfield" /> </label></td> </tr> <tr> <td class="label"> </td> <td colspan="3">Example : Commune ( Fort De France, François, Carbet, Lamentin)</td> </tr> <tr> <td class="label">Type</td> <td width="34%"><label> <select name="type" id="type" class="select_field"> <option>Villa</option> <option>Cuisine</option> <option>Coiffure</option> <option>Êvènement</option> <option>Logement</option> </select> </label></td> </tr> <tr> <td class="label"> </td> <td> </td> <td colspan="2" class="label"><label> <input type="image" src="images/searchbtn.gif" alt="search" name="button2" id="button2" value="Submit" /> </label></td> </tr> </table> </form> </div> </div> </div> <div id="topcategorieslink" class="clear"> <h2>Categories</h2> <ul> <li><a href="index.php">Villas</a> </li> <li><a href="index2.php">Locaux Professionnels</a> </li> <li><a href="index3.php">Coiffure</a> </li> <li><a href="index4.php">Êvènement</a> </li> <li><a href="index5.php">Logement</a> </li> </ul> </div> <div class="clear"> </div> <div id="main"> <h1>Liste Villas</h1> <ul class="listing"> <li> <div class="listinfo"> <img src="images/Villa/villa 1.jpg" alt="" class="listingimage" /> <h3>Villa 5 Chambres F1</h3> <p> Fort de France</p> <span class="price">prix : 500 000</span></div> <div class="listingbtns"> <span class="listbuttons"> <a href="#">Contactez Vendeur</a></span><span class="text"> <a>0596 30 82 25</a></span></div> <div class="clear"> </div> </li> <li> <div class="listinfo"> <img src="images/Villa/villa 2.jpg" alt="" class="listingimage" /> <h3>Villa 10 Chambres T1</h3> <p> Carbet</p> <span class="price">Rs. 1 000 000 </span></div> <div class="listingbtns"> <span class="listbuttons"> <a href="#">Contactez Vendeur</a></span><span class="text"> <a>0596 30 82 25</a></span></div> <div class="clear"> </div> </li> <li> <div class="listinfo"> <img src="images/Villa/villa 3.jpg" alt="" class="listingimage" /> <h3>Villa 20 Chambre</h3> <p> Le François</p> <span class="price">Rs. 10 000 000 </span></div> <div class="listingbtns"> <span class="listbuttons"> <a href="#">Contactez Vendeur</a></span><span class="text"> <a>0596 30 82 25</a></span></div> <div class="clear"> </div> </li> <li> <div class="listinfo"> <img src="images/Villa/villa 5.jpg" alt="" class="listingimage" /> <h3>Villa Luxieu</h3> <p> Lamentin</p> <span class="price">Rs. 500 000 000 </span></div> <div class="listingbtns"> <span class="listbuttons"> <a href="#">Contactez Vendeur</a></span><span class="text"> <a>0596 30 82 25</a></span></div> <div class="clear"> </div> </li> </ul> </div> </div> </div> </body> </html>
Partager