Sorry for my english, i'm french canadian !
I have a html file (login.html). This file call valid.asp. In the file valid.asp , I validate the login/passwd. If the login is wrong, I call error.html with "Response.Redirect("error.html"". In the file error.html, I have a message like "Wrong passwd" and a button with redirection to login.html. The redirection not work !!!
This is my 3 files , if you want help me !
Thanks
LOGIN.HTML
<body>
<script language="JavaScript">
function espacevide()
{
if (document.formu.login.value == ""
{
alert("Vous devez inscrire votre login s.v.p."
document.formu.login.focus();
return false;
}
document.formu.submit();
}
// --></script>
<form action="valid.asp" method="post" name="formu">
<table border=0 bordercolor=#000000>
<tr>
<td width=111>Login:</td>
<td><input type="text" name="login" size=10 maxlength=10></td>
</tr>
<tr>
<td width=111 height=24>Mot de passe:</td>
<td height=24><input type="password" name="password" size=10 maxlength=10>
</td>
</tr>
</table>
<input type="button" value="ENTRER" onclick="espacevide()">
<input type="reset" value="ANNULER">
</form>
</body>
VALID.ASP
<body>
<%
DIM login
DIM password
login = request.form("login"
password = Request.Form("password"
if (login="rros017" and password="osaka98a" then
Response.Redirect(login & ".html"
elseif (login="rdus019" and password="repas03n" then
Response.Redirect(login & ".html"
else
Response.Redirect("erreur.html"
end if
%>
</body>
ERREUR.HTML
</head>
Mauvais mot de passe !
****HERE FOR THE REDIRECTION OR IF IT'S POSSIBLE, IN THE ASP FILE, CHANGE "Response.Redirect("erreur.html"" FOR SOMETHING LIKE THAT: Message box said (Wrong passwd), click "OK" and return to login.html. With this, I don't need erreur.html
</html>
I have a html file (login.html). This file call valid.asp. In the file valid.asp , I validate the login/passwd. If the login is wrong, I call error.html with "Response.Redirect("error.html"". In the file error.html, I have a message like "Wrong passwd" and a button with redirection to login.html. The redirection not work !!!
This is my 3 files , if you want help me !
Thanks
LOGIN.HTML
<body>
<script language="JavaScript">
function espacevide()
{
if (document.formu.login.value == ""
{
alert("Vous devez inscrire votre login s.v.p."
document.formu.login.focus();
return false;
}
document.formu.submit();
}
// --></script>
<form action="valid.asp" method="post" name="formu">
<table border=0 bordercolor=#000000>
<tr>
<td width=111>Login:</td>
<td><input type="text" name="login" size=10 maxlength=10></td>
</tr>
<tr>
<td width=111 height=24>Mot de passe:</td>
<td height=24><input type="password" name="password" size=10 maxlength=10>
</td>
</tr>
</table>
<input type="button" value="ENTRER" onclick="espacevide()">
<input type="reset" value="ANNULER">
</form>
</body>
VALID.ASP
<body>
<%
DIM login
DIM password
login = request.form("login"
password = Request.Form("password"
if (login="rros017" and password="osaka98a" then
Response.Redirect(login & ".html"
elseif (login="rdus019" and password="repas03n" then
Response.Redirect(login & ".html"
else
Response.Redirect("erreur.html"
end if
%>
</body>
ERREUR.HTML
</head>
Mauvais mot de passe !
****HERE FOR THE REDIRECTION OR IF IT'S POSSIBLE, IN THE ASP FILE, CHANGE "Response.Redirect("erreur.html"" FOR SOMETHING LIKE THAT: Message box said (Wrong passwd), click "OK" and return to login.html. With this, I don't need erreur.html
</html>