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
|
<script type="text/javascript" language="javascript">
function getSelectedIndexLibelle()
{
s1 = document.getElementById('lst_1');
return s1.selectedIndex;
}
function getSelectedIndexTheme()
{
s2 = document.getElementById('lst_2');
return s2.selectedIndex;
}
function getSelectedIndexFournisseur()
{
s3 = document.getElementById('lst_3');
return s3.selectedIndex;
}
</script>
<php ?
<FORM METHOD='POST' ACTION='formulaire_DB.php' NAME='Text'>
<SELECT NAME="lst_1" OnChange='this.form.submit() SIZE='1'>
<OPTION VALUE="209">Arrêts-Urbains</OPTION>
<OPTION VALUE="210">Réseau-Urbain</OPTION>
</SELECT>
<SELECT NAME="lst_libelle" OnChange='this.form.submit() SIZE='1'>
<OPTION VALUE="209">...</OPTION>
<OPTION VALUE="210">...</OPTION>
</SELECT>
<SELECT NAME="lst_3" OnChange='this.form.submit() SIZE='1'>
<OPTION VALUE="209">...</OPTION>
<OPTION VALUE="210">...</OPTION>
</SELECT>
</FORM>
if (isSet($_POST['lst_1'])) $libelle = $_POST['lst_1'];
if (isSet($_POST['lst_2'])) $theme = $_POST['lst_2'];
if (isSet($_POST['lst_3'])) $fournisseur= $_POST['lst_3'];
?> |
Partager