El problema es que si envio el formulario vacio me da entrada???? que pasa aqui no deberia darme acceso, en cambio si meto cualquier clave no me deja entrar y si envio la correcta si me deja entrar, como puedo resolver eso??? el codigo que uso es:
formulario:
<html>
<head>
<title>Formulario para consulta sencilla</title>
</head>
<body bgcolor="#FFFFFF">
<h1><font color="#000000>Bienvenidos</font></h1>
<H1><B><font color="#000000">Instrucción:</B></font></H1>
<h3><font color="#000000">Por favor Introduzca LA CLAVE SECRETA, y luego presiona el botón de enviar:</font> </h3>
<form method="POST" action="aviso6.asp" name="fconsulta-pag-secreta" AUTOCOMPLETE="OFF">
<table border="1" width="50%">
<tr>
<td width="40%"><B><font color="#000000">Clave Secreta</B></font></td>
<td width="50%"><input type="password" name="clave" 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>
y el quer recoge la clave 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>
</script>
</head>
<body>
<center>
<table border="2" width="50%" bgcolor="#008000">
<tr>
<td width="100%">
<p align="center"><font color="#FFFFFF"><B>RESULTADO</B></font></td>
</tr>
</table>
</center>
</div>
<BR>
<BR>
<CENTER>
<%clave=request.querystring("clave")
set rs=createobject("ADODB.Recordset")
sqltxt="select * from clave where clave like '%"&clave&"%'"
'response.write (sqltxt)
rs.open sqltxt,("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + Server.MapPath("clave.mdb"))%>
<%if rs.eof then%>
<meta http-equiv="refresh" content="8;URL=portal-posturg.html">
<h3 align="center">
<font color="#FF0000"><H1><CENTER>Clave Incorrecta <I>Si lo intenta otra vez se ubicara tu IP y tu computador sera destruido!!!</CENTER></I></H1></font></h3>
<%else%>
<meta http-equiv="refresh" content="5;URL=consulta-actualizar.asp">
<%
response.write "<H1>Clave Correcta, espera por favor, 5 segundos</H1>"
end if
%>
</CENTER>
</body>
</html>
la transicio es a traves de una pagina asp aviso que remite la clave
Miguel
