par
LerikalBless » 31 mai 2015, 17:45
Bonjour, je voudrai faire en sorte que lorsque je rempli mon formulaire dans le choix d'un type et d'écrire la localisation par une commune que lorsque je clique sur le bouton Search qu'il me redirige vais ma page listepropriete.php et qu'il m'affiche dans un tableau les résultat voulus. J'ai essayer de coder, mais je n'arrive pas. Pouvez vous m'aidez s'il vous plaît ?
Membre.php :
<form action="listepropriete.php" method="post">
<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="localisation" value="<?php if (isset($_POST['localisation'])) echo htmlentities(trim($_POST['localisation'])); ?>"/>
</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" >
<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="submit" name="Rechercher" value="Rechercher">
</label></td>
</tr>
</table>
Listepropriete.php :
<form action="listepropriete.php" method="post">
<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="localisation" value="<?php if (isset($_POST['localisation'])) echo htmlentities(trim($_POST['localisation'])); ?>"/>
</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" >
<option>Villa</option>
<option>Cuisine</option>
<option>Coiffure</option>
<option>Êvènement</option>
<option>Logement</option>
</select>
</label></td>
</tr>
Bonjour, je voudrai faire en sorte que lorsque je rempli mon formulaire dans le choix d'un type et d'écrire la localisation par une commune que lorsque je clique sur le bouton Search qu'il me redirige vais ma page listepropriete.php et qu'il m'affiche dans un tableau les résultat voulus. J'ai essayer de coder, mais je n'arrive pas. Pouvez vous m'aidez s'il vous plaît ?
Membre.php :
[php]<form action="listepropriete.php" method="post">
<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="localisation" value="<?php if (isset($_POST['localisation'])) echo htmlentities(trim($_POST['localisation'])); ?>"/>
</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" >
<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="submit" name="Rechercher" value="Rechercher">
</label></td>
</tr>
</table>[/php]
Listepropriete.php :
[php]<form action="listepropriete.php" method="post">
<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="localisation" value="<?php if (isset($_POST['localisation'])) echo htmlentities(trim($_POST['localisation'])); ?>"/>
</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" >
<option>Villa</option>
<option>Cuisine</option>
<option>Coiffure</option>
<option>Êvènement</option>
<option>Logement</option>
</select>
</label></td>
</tr>[/php]