oki seguimos
Código PHP:
<%
id_pto = cint(request("id_puesto"))
set rs_usu = server.CreateObject("adodb.recordset")
sql = "select * from usuario where id_puesto= " & id_pto
rs_usu.open sql, conn
if rs_usu.bof or rs_usu.eof then
response.write "no hay usuarios registros que mostrar"
else
%>
<p> <tr valign="top">
<td width="22" height="26"> Nombre:</td>
<td width="60"><input id="txt_concepto" name="txt_concepto" class="MainLinks" tabindex="3" size="15" value=<%=rs_usu.fields("nombre")%>></td>
</tr>
<tr valign="top">
<td width="22" height="26"> Ap.Pat: </td>
<td width="60"><input name="APAt" id="APAt" size="25" value=<%=rs_usu.fields("apellido_paterno")%>></td>
</tr>
<tr valign="top">
<td width="22" height="26">Ap.Mat:</td>
<td width="66"><input name="AMat" id="AMat" size="25" value=<%=rs_usu.fields ("apellido_materno")%>></td>
</tr>
<%
rs_usu.close
end if
conn.Close
set rs_usu = nothing
set conn = nothing
%>
proba