Index du forum »»  Le coin des codeurs »» CHOIX LISTE DEROULANTE POUR EXECUTION REQUETE SQL

CHOIX LISTE DEROULANTE POUR EXECUTION REQUETE SQL#7721

2Contributeur(s)
TILDATribal-Dolphin
3 Modérateur(s)
developpeurjpbJireck
TILDA TILDAicon_post
Je ne vois pas comment faire, car j'ai une liste du type:

<FORM>
<SELECT ONCHANGE="SELF.LOCATION=this.options[this.selectedindex].value" NAME ="select">
<OPTION VALUE="&amp;{self.location.href};"SELECTED>Faites votre choix !</OPTION>
<OPTION VALUE="stat1.html">Scores décroissants par niveaux</OPTION>
<OPTION VALUE="stat2.html">Scores décroissants pour un niveau</OPTION>
........
</SELECT>
</FORM>

Et suivant le choix fait par l'utilisateur, la requete SQL qui doit s'executer puis s'afficher est différente.
Or si j'utilise le name (ici "select"), je ne vois pas comment différencier les choix..?? :-? :-?
Tribal-Dolphin Tribal-Dolphinicon_post
Un bon conseil => www.tout!javascript!.com (sans les ! ! ) La bible du !javascript!.
Tu trouveras à coups sûr la solution.