Si es asp clasico y
LO HE CONSEGUIDO!!!!!
Aqui os pongo el codigo:
<%for i=lbound(mimatriz) to ubound(mimatriz)
'if mimatriz(i,0)="" and mimatriz(i,1)="" and not(inmimatriz) then
if mimatriz(i,0)="" and mimatriz(i,1)="" and not(inmimatriz) then
mimatriz(i,0)=idproducto
mimatriz(i,1)=request.form("cantidad")
inmimatriz=true%>
<%end if
next%>
<%
acumulado=0
Numeroveces=0
for i = 0 to 20
cadena2 =(mimatriz(i,0))
tamanoid=len(idproducto)
tamanomatrix=len(mimatriz(i,0))
if tamanoid=tamanomatrix then
if instr(cadena2, idproducto) > 0 then
Numeroveces=Numeroveces+1
acumulado=acumulado+(mimatriz(i,1))
else
end if
else
end if
Next
%>
Gracias por vuestra ayuda