html select onchange
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Page d'accueil</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="file:///C|/Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_travel2.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
//--------------- LOCALIZEABLE GLOBALS---------------
var d=new Date();
monthname= new Array("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre");
//Ensure correct for language. English is "January 1, 2004"
var TODAY = d.getDate()+ ", "+monthname[d.getMonth()] + " " + d.getFullYear();
//--------------- END LOCALIZEABLE ---------------
</script>
<style type="text/css">
<!--
.Style1 {color: #000000}
.Style2 {color: #FFFFFF}
.Style3 {font-size: 14px}
body,td,th {
color: #000000;
}
a:link {
color: #000000;
}
a:visited {
color: #000000;
}
a:hover {
color: #000000;
}
.Style4 {
color: #000000;
font-size: 18px;
font-weight: bold;
}
-->
</style>
</head>
<body bgcolor="#CCCCFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#CCCCFF">
</tr>
<tr bgcolor="#3366CC">
</tr>
<tr>
<td colspan="7" bgcolor="#003366"><img src="file:///C|/Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr bgcolor="#006600">
<td colspan="7" id="dateformat" height="25"> <script language="JavaScript" type="text/javascript">
document.write(TODAY); </script> </td>
</tr>
<p></p>
<tr>
<td colspan="7" bgcolor="#003366"><img src="file:///C|/Program Files/Macromedia/Dreamweaver 8/Configuration/BuiltIn/StarterPages/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr>
<td width="165" valign="top" bgcolor="#006600">
<p></p>
<table border="0" cellspacing="0" cellpadding="0" width="165" id="navigation">
<tr>
<td width="165" ><p><a href="testservice.php" class="Style1">Liste des Services </a> </p>
</tr>
<tr>
<td width="165"><p><a href="testformation.php" class="Style1 ">Liste des Formations </a></p>
</td>
</tr>
<tr>
<td width="165"><p><a href="testpersonnel.php" class="Style1"> Liste des Participants </a></p>
</td>
</tr>
<tr>
<td width="165"><p><a href="testdirection.php" class="Style1">Liste des Directions</a></p>
</td>
</tr>
</table>
<div align="left"><strong><a href="pagedaccueil.php" class="Style1 Style3">ACCUEIL</a></strong><br />
<br />
<br />
</div>
<p></p>
</td>
<td width="50" bgcolor="#CCCCFF"> </td>
<td width="100%" bgcolor="#CCCCFF">
<p>
<p align="center" class="Style4"> Etat des Formations </p>
<p align="center" class="Style4"></p>
</p></td>
<form name="form1" method="post" action="suiteetatformation.php">
<p>
<label></label>
<table width="376" border="0" align="center" bordercolor="#707070">
<tr>
<td width="364">
</p>
<table width="350" height="100" border="0">
<tr>
<td width="120"><p class="Style1"><strong>Mois </strong></p>
</td>
<td>
<select name="mois">
<option value="choix1">Janvier</option>
<option value="choix2">Fevrier</option>
<option value="choix3">Mars</option>
<option value="choix4">Avril</option>
<option value="choix1">Mai</option>
<option value="choix2">Juin</option>
<option value="choix3">Juillet</option>
<option value="choix4">Aout</option>
<option value="choix1">Septembre</option>
<option value="choix2">Octorbre</option>
<option value="choix3">Novembre</option>
<option value="choix4">Decembre</option>
</select>
</td>
</tr>
<tr>
<td height="49"><p><strong>Annee</strong></p>
</td>
<td><select name="monannee">
<option value="2013">2013</option>
</select>
<tr>
<td>
<form id="form2" name="form2" method="post" action="suiteetatformation.php">
<table width"200" border="0" align="center" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td><label>
<input type="submit" name="Submit3" value="OK" />
</label></td>
</tr>
</table>
<span class="Style2"></span>
</form>
</td>
</tr>
</tr>
</table>
</body>
</html>
<tr>
<td height="49"><p><strong>Annee</strong></p>
</td>
<td><select name="monannee">
<option value="2013">2013</option>
</select>
<tr>
<form id="form2" name="form2" method="post" action="suiteetatformation.php">
<table width"200" border="0" align="center" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td><label>
<input type="submit" name="Submit3" value="OK" />
</label></td>
</tr>
</table>
<span class="Style2"></span>
</form>
voila mon problème:je veux que l'utilisateur sélectionne une année puis clique sur un bouton pour aller l'afficher une page contenant la liste des formations de l'année sélectionnée-> Selection Date : c'est fait