bonjour a tous, j'espere que votre week de paques c'est bien passé.

j'ai une selectbox et je voudrais que quand je selectionne un nom, la page m'affiche les données sur le nom choisi

voici mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
<cfoutput>
<html>
<head>
<link rel="stylesheet" media="screen" type="text/css" title="coldfusion" href="coldfusion.css">
</head>
<body>

<form action="authentification3.cfm" method="POST">

<cfquery datasource="authentification" name="authentification">
SELECT login FROM authentification
</cfquery>


<center><cfoutput><h2>Bonjour #authentification.login#</h2></cfoutput>

Quel personne voulez vous voir son emplois du temps : 
<select name="choix" onChange="form1.submit()">
<option value=-1>-- Choisissez -- </option> 
<cfloop query="authentification">
<option value="login">#login#</option>
</cfloop>
</select>

Comment lui dire que c'est dans choix que je veux récuperer les variables ???
<cfif #choix# neq -1>
<cfquery datasource="authentification" name="authentification">
SELECT login FROM authentification WHERE login=#authentification.login#
</cfquery>
</cfif>


</body>
</html>
</cfoutput>