salut tout le mode , je n'arrive pas d'associer la référence de produit avec la quantité qui le correspond voiçi le code source:
<<test.html>>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#ffffff">
<FORM method=post name=form action="test.asp">
<table width="239" border="1" bordercolor="#333333" bordercolordark="#0000FF" bordercolorlight="#333333" cellpadding="0" cellspacing="0" align="center">
<tr>
<td valign="top" align="left" width="87"><font size="2">Référence
</font></td>
<td width="66"><font size="2"> Quantité</font></td>
</tr>
<tr>
<td width="87" valign="top" align="left"><font size="2">Réf1:
<input type="checkbox" name=choix value="ref1" >
</font></td>
<td width="66" valign="top" align="left">
<div align="center"> <font size="2">
<input type=text name=quantite value="" id=1 size="6">
</font></div>
</td>
</tr>
<tr>
<td width="87" valign="top" align="left"><font size="2">Réf2:
<input type="checkbox" name=choix value="ref2" >
</font></td>
<td width="66" valign="top" align="left">
<div align="center"> <font size="2">
<input type=text name=quantite value="" id=1 size="6">
</font></div>
</td>
</tr>
<tr>
<td width="87" valign="top" align="left"><font size="2">Réf3:
<input type="checkbox" name=choix value="ref3" >
<input type="hidden" name="rang" value="2">
</font></td>
<td width="66" valign="top" align="left">
<div align="center"> <font size="2">
<input type=text name=quantite value="" id=1 size="6">
</font></div>
</td>
</tr>
<tr>
<td width="87" valign="top" align="left"><font size="2">Réf4:
<input type="checkbox" name=choix value="ref4" >
</font></td>
<td width="66" valign="top" align="left">
<div align="center"> <font size="2">
<input type=text name=quantite value="" id=1 size="6">
</font></div>
</td>
</tr>
<tr>
<td width="87" valign="top" align="left"><font size="2">Réf5:
<input type="checkbox" name=choix value="ref5">
</font></td>
<td valign="top" align="left" width="66">
<div align="center"> <font size="2">
<input type=text name=quantite value="" id=1 size="6">
</font></div>
</td>
</tr>
</table>
<p>
<input type="submit" value="valider" name=action>
</p>
</FORM>
</body>
</html>
et voiçi le code ASP <<test.asp>>
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%Ref=Request.Form("choix")%>
<%quantite=Request.Form("quantite")%>
Les quantités commandés avant la fonction split sont :<%Response.Write quantite %><br>
Les références commandés avant la fonction sont :<%Response.Write Ref %><br>
<%MyRefproduit =Split(Ref,",",-1,1)%>
<%Myquantite =Split(quantite,",",-1,1)%>
Les réferences des produits sont :<br>
<% for i=0 to ubound(MyRefproduit) %>
<%=MyRefproduit(i)%>Quantité commandé : <%=Myquantite(i)%> <br>
<%Next %>
Traitement des informations :<br>
Les quantités commandés aprés l'apllication de la fonction split sont :<br>
<% for i=0 to ubound(Myquantite) %>
Myquantite(<%=i%>)=<%=Myquantite(i)%><br>
<%Next %> <br>
Les réfénces commandés aprés l'apllication de la fonction split sont :
<% for i=0 to ubound(MyRefproduit) %>
Myrefproduit(<%=i%>)=<%=Myrefproduit(i)%><br>
<%Next %> <br>
</BODY>
</HTML>