Buenos dias, tengo un problema con la captura de datos de varios checkbox seleccionados.
Lo que quiero hacer es enviar todos los datos de checkbox seleccionados y capturarlos en un array en otra página, para luego realizar consultas sql .
Este es mi codigo en html.
<script language="javascript"> function noborrar()
{
alert("Para modificar los datos favor de ingresar a sistema SUF.");
}
<form method="POST" action="traspaso_suf.asp"> <table border="0" width="85%" id="table3" cellspacing="0" cellpadding="0"> <table border="1" width="100%" id="table4" style="border-left-width: 0px; border-right-width: 0px" bgcolor="#FFFFCC"> <td colspan="5" bgcolor="#000080" style="border-style: solid; border-width: 1px"> <b><font face="Arial" size="2" color="#FFFFFF">Proyectos en
SUF (
<%Response.Write r_usuario%>)
</font></b></td> <td style="border-style: none; border-width: medium" width="8%"> <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-bottom-style: none; border-bottom-width: medium" width="35%"> <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-bottom-style: none; border-bottom-width: medium" width="52%"> <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-bottom-style: none; border-bottom-width: medium" width="2%"> <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-bottom-style: none; border-bottom-width: medium" width="1%"> </td> <%do while not udatos.eof%>
<td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-bottom-style: none; border-bottom-width: medium" width="8%"> <input name="chk_turno" type="checkbox" value="<%=udatos("cod_proyecto")%>" onclick="document.getElementById('div_li_turno').s tyle. display = (this.checked) ? 'block' : 'none' " >
</td> <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-bottom-style: none; border-bottom-width: medium" width="35%"> <input name="T4" size="25" readonly value="<%=udatos("fecha")%>" style="font-family: Arial; ">
</font></td> <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-bottom-style: none; border-bottom-width: medium" width="52%"> <input name="T3" size="72" readonly value="<%=udatos("nombre_proyecto")%>" style="font-family: Arial; ">
</font></td> <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-bottom-style: none; border-bottom-width: medium" width="2%"> <td style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-bottom-style: none; border-bottom-width: medium" width="1%"> </td> <%udatos.movenext
loop
%>
<input type="submit" value="Traspasar" name="B3" style="color: #333333">
El problema es como los capturo en el array.
<%
dim vector()
vector = Request.Form("chk_turno")
Set cn = Server.CreateObject("ADODB.Connection")
cn.Open ("Provider=SQLOLEDB;Server=STGOSQL2K8;Database=IndapCred;Uid=R04; Pwd=R04;")
for i=0 to UBound(vector)
Response.Write vector
next
%>
Gracias por la ayuda.
Esto no es VB6 subforo equivocado.