
27/02/2003, 13:09
|
| | Fecha de Ingreso: mayo-2001 Ubicación: SMP-LIMA
Mensajes: 120
Antigüedad: 24 años Puntos: 0 | |
Basicamente el truco esta en dim x()
INDICE=0
FOR each dato in Request.Form
INDICE=INDICE+1
REDIM PRESERVE X(INDICE)%>
<%if dato<>"asociar" then %>
<%=dato%>:<%=Request.Form(dato).ITEM %><br>
<% x(indice)=dato
end if %>
<%next
%>
<%
'grabar asociacion
FOR I=1 TO UBound(x)
'Response.Write(x(i)) %><br>
<%sql="insert into detalle_componente values("& x(i) &","& session("wwbien") &")"
Set rs = DBbien.execute(sql)
next
nota: la variable dato, me parece q es parte de la instruccion for each, salvo que me equivoco si alguien se acuerda.....
__________________ Alberto |