<!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>RECHERCHES</title> <meta name="author" content="" /> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" /> <meta http-equiv="Content-Language" content="fr" /> <meta name="keywords" lang="fr" content="<!-- Insérer les mots-clefs de votre page-->" /> <link rel="stylesheet" media="screen" type="text/css" title="style" href="css/style.css" /> <script type="text/javascript" src=""></script> </head> <?php include('connection.php'); echo '<form id="choixpays" method="post" action="result.php">'; $rq1 = "SELECT DISTINCT pays FROM vae ORDER BY lot ASC"; $donnees1 = mysql_query($rq1) or die(mysql_error()); $selected = 0; ?> <select name="pays" id="pays" onchange="document.forms('choixpays').submit()"> <?php echo '<option disabled="disabled" SELECTED>Pays :</option>'; while ($row = mysql_fetch_array($donnees)) { if($Selected == 0) { echo '<option value="', $row[0], '">', $row[0], '</option>'; $Selected = 1; } else { echo '<option value="', $row[0], '">', $row[0], '</option>'; } } echo '</select></form>'; if (isset ($_POST['regime'])) { $regime = $_POST['regime']; echo '<form id="choixregime" method="post" action="result.php">'; $rq2 = "SELECT regime FROM vae WHERE pays='$pays'"; $donnees2 = mysql_query($rq2) or die(mysql_error()); ?> <select name="regime" id="regime" onchange="document.forms('choixregime').submit()"> <?php $Selected = 0; echo '<option disabled="disabled" SELECTED> Régime :</option>'; while ($row = mysql_fetch_array($donnees)) { if($Selected == 0) { echo '<option value="', $row[1], '">', $row[1], '</option>'; $Selected = 1; } else { echo '<option value="', $row[1], '">', $row[1], '</option>'; } } echo '</select></form>'; mysql_close(); ?> </html>
<!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>RECHERCHES</title> <meta name="author" content="" /> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" /> <meta http-equiv="Content-Language" content="fr" /> <meta name="keywords" lang="fr" content="" /> <link rel="stylesheet" media="screen" type="text/css" title="style" href="css/style.css" /> <script type="text/javascript" src="" ></script> </head> <?php include('connection.php'); echo '<form id="choixpays" method="post" action="result.php">'; $rq1 = "SELECT DISTINCT pays FROM vae ORDER BY lot ASC"; $donnees1 = mysql_query($rq1) or die(mysql_error()); $selected = 0; ?> <select name="pays" id="pays" onchange="document.forms('choixpays').submit()"> <?php echo '<option disabled="disabled" SELECTED>Pays :</option>'; while ($row = mysql_fetch_array($donnees)) { if($Selected == 0) { echo '<option value="'.$row[0].'">'.$row[0].'</option>'; $Selected = 1; } else { echo '<option value="'.$row[0].'">'.$row[0].'</option>'; } } echo '</select></form>'; if (isset ($_POST['regime'])) { $regime = $_POST['regime']; echo '<form id="choixregime" method="post" action="result.php">'; $rq2 = "SELECT regime FROM vae WHERE pays='".$pays."'"; $donnees2 = mysql_query($rq2) or die(mysql_error()); ?> <select name="regime" id="regime" onchange="document.forms('choixregime').submit()"> <?php $Selected = 0; echo '<option disabled="disabled" SELECTED> Régime :</option>'; while ($row = mysql_fetch_array($donnees)) { if($Selected == 0) { echo '<option value="'.$row[1].'">'.$row[1].'</option>'; $Selected = 1; } else { echo '<option value="'.$row[1].'">'.$row[1].'</option>'; } } echo '</select></form>'; mysql_close(); ?> </html>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question