Pasar datos de un form a otro
Publicado por aljorsamel (1 intervención) el 03/08/2009 04:20:11
Estimados amigos solicito ayuda soy novato en programación en ASP, estoy aprendiendo de los ejemplos, pues mi consulta es la siguiente tengo un Form.HTM que abre un Formulario.ASP donde se ingresa usuario y clave al entrar va a Validar.ASP y de ahí tiene que abrir un FORM.htm, según el usuario, pero no me resulta este es el código, no se que estos haciendo mal
<%@ LANGUAGE="VBSCRIPT"%>
<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>INICIO</title>
</head>
<body>
<p><b>
<a href="file:///C:/Inetpub/Tarea/Formulario.asp" style="text-decoration: none">
<font color="#000000">ABRIR FORMULARIO</font></a></b></p>
</body>
</html>
<%@ LANGUAGE="VBSCRIPT"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Formulario.ASP</title>
</head>
<body>
<form method="post" action="destino.asp">
Nombre<br>
<input type="TEXT" name="NOMBRE"><br>
Clave<br>
<input type="password" name="Clave"><br>
<input type="submit">
</form>
<p>Nombre: luis Clave: 5678</p>
<p>Nombre: pepe Clave: 1234</p>
</body>
</html>
<%@ LANGUAGE="VBSCRIPT"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>destino.asp</title>
</head>
<body>
<%if ( Request.Form("nombre") = "luis") then
If ( Request.Form("clave") = "5678") then
Response.Redirect "45.htm"
else
Response.Redirect "Formulario.asp"
End if
End if
if ( Request.Form("nombre") = "pepe") then
If ( Request.Form("clave") = "1234") then
Response.Redirect "32.asp"
else
Response.Redirect "Formulario.asp"
end if
End if%>
</body>
</html>
<%@ LANGUAGE="VBSCRIPT"%>
<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>INICIO</title>
</head>
<body>
<p><b>
<a href="file:///C:/Inetpub/Tarea/Formulario.asp" style="text-decoration: none">
<font color="#000000">ABRIR FORMULARIO</font></a></b></p>
</body>
</html>
<%@ LANGUAGE="VBSCRIPT"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Formulario.ASP</title>
</head>
<body>
<form method="post" action="destino.asp">
Nombre<br>
<input type="TEXT" name="NOMBRE"><br>
Clave<br>
<input type="password" name="Clave"><br>
<input type="submit">
</form>
<p>Nombre: luis Clave: 5678</p>
<p>Nombre: pepe Clave: 1234</p>
</body>
</html>
<%@ LANGUAGE="VBSCRIPT"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>destino.asp</title>
</head>
<body>
<%if ( Request.Form("nombre") = "luis") then
If ( Request.Form("clave") = "5678") then
Response.Redirect "45.htm"
else
Response.Redirect "Formulario.asp"
End if
End if
if ( Request.Form("nombre") = "pepe") then
If ( Request.Form("clave") = "1234") then
Response.Redirect "32.asp"
else
Response.Redirect "Formulario.asp"
end if
End if%>
</body>
</html>
Valora esta pregunta


0