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
   |  
 
if (!empty($_GET['cat']))
									{
										$cat = $_GET['cat'];
									}
 
									if (!empty($_GET['sous_cat']))
									{
										$sous_cat = $_GET['sous_cat'];
									}
 
									if (!empty($_GET['univ']))
									{
										$univ = $_GET['univ'];
									}
 
									if (!empty($_GET['cat']) and empty($_GET['sous_cat']))
									{
										echo '<form method="get" action="liste.php?cat="'.$cat.'"" class="form">';
									}
 
									if (!empty($_GET['sous_cat']))
									{
										echo 'on est dans ce cas';
										echo '<form method="get" action="liste.php?cat="'.$cat.'"&sous_cat="'.$sous_cat.'"" class="form">';
									}
 
									if (!empty($_GET['univ']))
									{
										echo '<form method="get" action="liste.php?univ="'.$univ.'" class="form">';
									}
 
					?>
 
													<div class="filtre">
														<SELECT name="mark" onchange="this.form.submit()" class="font" value="<?php echo $mark; ?>">
															<OPTION>Toutes les marques
															<OPTION>CANON									
															<OPTION>NIKON
															<OPTION>FUJI
															<OPTION>SIGMA
														</SELECT>
													</div>					
							</form> | 
Partager