ورود

View Full Version : سوال: پیدا کردن مشکل



elahe_sharbati
یک شنبه 07 خرداد 1391, 14:31 عصر
<%
notform = 0

If Request.Form("submit") ="Login" Then
dim uname,passd

uname=Request.form("username")
passd=Request.form("password")


if Request.form("fcount").count = 0 then
count1 = 0
else
count1 = Request.form("fcount") +1

if count1 >= 3 then
notform = 1
message = "your not logged in"
else
message = "not logged"
end if
end if

if uname = "elahe" and passd ="123" Then
Session("BlnLoggedIn") = True
Response.Redirect "index.asp"
end if

end if
%>
<html>
<body>
<div align='center'>
<div><%=message%></div>
<% if notform = 0 then %>
<form name="form" action="test3.asp" method="post" >
<table>
<tr><td>User Name :</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" align='center'>
<input type="text" name="fcount" value="<%=count1%>">
<input type="submit" name="submit" value="Login" ></td></tr>
</table>
</form>
<% end if %>
</div>
</body>
</html>

میشه یکی سریع بهم بگه مشکل برنامم کجاس که اجرا نمیشه