Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/03/2006, 12:07
Avatar de AlZuwaga
AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 24 años, 2 meses
Puntos: 535
Mmm.. nop, con el código anterior no tenías la posibilidad de conocer el id de registro para hacer el update...


Código:
<form action="" name="conferma" method="post">
<% For i = 1 to 10 %>
Registro <% = i %>: 
<input type="radio" name="radio<% = i %>" value="1" />SI
<input type="radio" name="radio<% = i %>" value="2" />NO
(id del registro: <input type="text" name="id_reg<% = i %>" value="<% = rs("id_registro") %>" />)
<br />
<% Next %>
<input type="submit" />
<input type="text" name="cantidad" value="<% = i - 1 %>" />
</form>
<%
For i = 1 to Request.Form("cantidad")
If Request.Form("radio" & i) <> "" then
	Response.Write "Registro " & Request.Form("id_reg" & i) & ", estado: " & Request.Form("radio" & i) & "<br />"
	SQL = "update tabla set estado = " & Request.Form("radio" & i) & " where id_registro = " & Request.Form("id_reg" & i)
	Response.Write SQL & "<br /><br />"
End if
Next
%>

creo que ahora si...
__________________
...___...