
04/12/2008, 13:39
|
 | | | Fecha de Ingreso: noviembre-2002 Ubicación: Mexico DF
Mensajes: 204
Antigüedad: 22 años, 5 meses Puntos: 1 | |
Respuesta: Enviar Datos en un Radio Button. Hola a todos, ya estoy de vuelta con este tema, mi codigo es este:
<%
Dim conn, rs, sql
Dim isValid
usuario = session("name")
sql = "SELECT EV, LI, TIPO, NE FROM retro WHERE CL = '" & usuario & "'"
set conn = Server.CreateObject("ADODB.Connection")
set rs = Server.CreateObject("ADODB.RecordSet")
conn.Open"Driver={Microsoft Access Driver (*.mdb)}; " & "Dbq=" & Server.MapPath("db/db.mdb")
rs.Open sql, conn
if not rs.eof then
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form method="POST" action="recibodatos.asp">
<p> </p>
<div align="center">
<center>
<table border="0" cellspacing="0" cellpadding="0" width="372" height="1">
<tr>
<td width="339" align="center" height="21" bgcolor="#000000" colspan="2">
<b><font face="Arial" color="#FFFFFF" size="2">Mis Campos</font></b>
</td>
</tr>
<%
do until rs.eof
%>
<tr>
<td align="left" width="322" height="26">
<b>
<font size="2" face="Arial">
<input type="text" name="NE" size="1" value="<%= rs("NE") %>" style="color: #FFFFFF; background-color: #FFFFFF; border-style: solid; border-color: #FFFFFF"><%= rs("EV") %>
</font>
</b>
</td>
<td align="left" width="17" height="26">
<p align="center"><input type="radio" value="<%= rs("EV") %>" checked name="nombre">
</td>
</tr>
<tr>
<td align="left" width="428" height="1" colspan="2">
<hr>
</td>
</tr>
<%
rs.movenext
loop
%>
</center>
<tr>
<td align="left" width="428" height="1" colspan="2">
<p align="right"><input type="submit" value="Evaluar" name="Evaluar">
</td>
</tr>
<center>
</table>
</center>
</div>
<%
else
%>
<p> </p>
<div align="center">
<center>
<table width="379" cellspacing="1">
<tr height="40">
<td width="371">
<table width="100%" cellspacing="1" height="1">
<tr height="40">
<td width="356" bgcolor="#000000" height="18">
<p align="center"><font color="#FFFFFF" size="2" face="Arial"><b>Mis Datos</b></font></p>
</td>
</tr>
<tr height="40">
<td width="356" height="1">
<p align="center"><b><font color="#0000FF" face="Arial" size="2">No
Hay Datos.</font></b></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
<%
end if
rs.close
conn.close
set rs = nothing
set conn = nothing
%>
</form>
</body>
</html>
Tons como pueden ver si existe el usuario me manda su nombre y una calificacion, entonces si me aparecen mas de una persona en la lista y selecciono con mi radio button a la persona que quiero y le doy enviar, en mi otra pagina cacho los datos el nombre y la calificacion, pero el problema es que la calificacion me la concatena con todos los usuarios que pudieran estar ahi. como os mencione anteriormente.
Como puedo enviar solamente los datos del registro que selecione?
Gracias.
__________________ Guapo Ben Servidor y Amigo :adios: |