%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
formno=request("formno")
if session("userid") <> "" then
if formno<>"" then
%><%
else
%> <%
end if
end if
id=request.QueryString("id")
//response.write "id" & id & " "
%>
Untitled Document
<%if id="" then%>
<% if formno <>"" then%>
<%elseif id=2 then
userid=request.form("userid")
password=request.form("password")
str="select * from bMatMain where userid='"&userid&"' and password='"&password&"'"
//response.write "str " & str &" "
set rs=con.execute(str)
if not rs.eof then
session("userid")=userid
session("password")=password
session("approve")=rs("approve")
//response.Redirect("myhome.php")
if session("userid") <> "" then
if formno<>"" then
%><%
else
%> <%
end if
end if
else
%>
<%
end if
end if
%>