Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/06/2003, 10:18
OXIGENO
 
Fecha de Ingreso: febrero-2002
Mensajes: 442
Antigüedad: 23 años, 2 meses
Puntos: 2
Hola.... tu codigo esta perfecto....
lo unico que hice fue sacarle en el form submit la accion pass.asp
pero igual no tendria que influir.... Ordene un poquitin el codigo y salio andando perfectamente.

Código:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
msg = ""
If Request("Submit") <> "" Then
		If Request("username")="User" And Request("password")="Pass" Then
			Session("Valid") = Request("username")
			'primera página protegida
			response.redirect "form.asp" 
		Else 
			msg = "Inténtalo de nuevo"
		End If
End If
%>
<html>
<head>
<title>Password</title>
</head>
<body>
<form action="" method="post">
  <table>
	<% If msg <> "" Then %>
		<tr><td colspan="2"><font color=red><%=msg%></font></td></tr>
	<%End If%>
		<tr>
			<td>UserName:</td>
			<td><input type="text" name="username"></td>
		</tr>
		<tr>
			<td>Password:</td> 
			<td><input type="Password" name="password"></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" name="Submit"></td>
		</tr>
	</table>
</form>
</body>
</html>
__________________
tech-nico.com