salut voila 3 jours que g ce prob pour faire un formulaire via ma bd access
je me suis mis a l'asp y a pas lgtps...
je veux juste sélectionner un produit dans ma base avec ma liste déroulante et afficher en dessous le prix du produit sélectionné dans la liste
pour la liste c bon mais après ça marche pas pour le Prix
voila mon code:
<%'-------connexion à la base (ça ça marche)---------------
Set Rs = Server.CreateObject("ADODB.Recordset")%>
Rs.Open "Select * from PRODUIT where CatNum=1", Conn%>
if Rs.eof=true then%>
<br><font>pour le moment, aucun produit n'est enregistré dans la base</font>
<%else%>
<html>
<head>
<title>commande</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<p align="center"><font><b><u>COMMANDER</u></b></font></p>
<form method="post" action="traitement_produit.asp" name="musique">
<table align="center" border="0">
<tr>
<td width="261">
<p>Nom Produit </p>
</td>
<td width="261">
<p><select name="NomProduit" size="1" ">
<%Rs.MoveFirst
do while not Rs.eof%>
<option value="<%=Rs("ProdDesign")%>"><%=Rs("ProdDesign")%></option>
<%Rs.movenext
loop%>
</select>
<%end if%>
<%rs.close
set rs= nothing
Rs.open "Select * from PRODUIT where CatNum=1 and ProdDesign= '"&Rs("NomProduit")'", Conn%>
<%if Rs.eof=true then%>
<br><font>pour le moment, aucun produit n'est enregistré dans la base</font>
<input type="text" name="PUProd" Prix unitaire
value="<%=rs("ProdPU")%>"
</input>
<%end if%>
<%Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = Nothing%>
<p align="center"><input type="submit" name="valider" value="valider"></p>
<p align="center"><input type="reset" name="effacer" value="Effacer"></p>
<p align="center"><a href="page.htm" target="_self"><b><font size="3" face="Arial"> Retour</font></b></a></p>

merci de votre aide !
</body>
</html>