Amigos por favor si alguien puede sacarme de duda con este codigo, tengo tres paginas: 2 en html y uno en asp.
1) La primera pagina es un formulario en html, y es el siguiente:
<html>
<head>
<title>Formulario para consulta sencilla</title>
</head>
<body OnLoad="javascript
:document.fconsulta5.cedula.focu s();">
<h1 align="center">Consulta para Notas</h1>
</p><BR>
<H1><B>Intrucción:</B></H1>
<h3>Por favor Introdusca su NÚMERO DE CÉDULA SIN PUNTO, y luego presiona el botón de enviar: </h3>
<form method="get" action="aviso.html" name="fconsulta5" AUTOCOMPLETE="OFF">
<table border="1" width="50%">
<tr>
<td width="40%"><B>Cedula Identidad:</B></td>
<td width="50%"><input type="text" name="cedula" size="8"></td>
</tr>
<tr>
<td width="16%"><input type="submit" value="Enviar" name="B1"></td>
<td width="84%"><input type="reset" value="Restablecer" name="B2"></td>
</tr>
</table>
</form>
************************************************** **
2) La segunda pagina es tanbien una pagina html, y su codigo es:
pagina aviso.html
<html>
<head>
<title>Aviso de espera</title>
</head>
<body >
Espere por favor!!!!!!!!!!
<%resultadonotas4.asp?cedula=<%=cedula%>
<meta http-equiv="refresh" content="5;URL=resultadonotas4.asp">
</body>
************************************************** **
3) Y la tercera pagina es la que recoge la consulta en asp, y parte del codigo es:
<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Consulta de una Base de Dato</title>
</head>
<body>
</table>
</head><body bgcolor="#808000">
<div align="center">
<center>
<table border="2" width="50%" bgcolor="#008000">
<tr>
<td width="100%">
<p align="center"><font color="#FFFFFF"><B>RESULTADO DE LAS NOTAS</B></font></td>
</tr>
</table>
</center>
</div>
<BR>
<CENTER><a href="fconsulta4.html"><H2><B>Volver al Formulario</B></H2></a></CENTER>
<BR>
<%
'Aqui compruebo que esta colocando 8 digitos
If Len(Request.Form("cedula")) <8 then
'el campo no fue llenado, entonces...
response.write "<CENTER><H1><B>¡ERROR!</B></H1></CENTER>"
response.write "<CENTER><B><H1>Por Favor rellenar con Tú Cédula de 8 Dígitos, presiona Volver al Formulario, para intentarlo otra vez</H1></B></CENTER>"
response.end
End If%>
<%=request.querystring("cedula")%>
<%ccedula=request.form("cedula")
set rs=createobject("ADODB.Recordset")
sqltxt="select * from Alumnos where cedula like '%"&ccedula&"%'"
'response.write (sqltxt)
rs.open sqltxt,"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Inetpub\wwwroot\asp\bdfisica2.mdb;"%>
************************************************** **
Nota: lo que esta en negrita es donde trato de recoger el dato que me pasa por url desde aviso, pero esto no se da, PORQUE SERA, ES QUE ESTA MALO, SERA QUE ALGUIEN ME PUEDE ORIENTAR PARA RESOLVERLO, TENGO VARIOS DIAS TRATANDO DE RESOLVERLO Y NO HE PODIDO
mIGUEL