温柔网

 找回密码
 注册

查看: 536|回复: 0

用户登录

[复制链接]
发表于 2003-11-6 23:17:24 | 显示全部楼层 |阅读模式
<HTML>
<BODY>
<TITLE>
用户登录
</TITLE>
<%
if Request.Form.Count=0 then
%>
请输入用户名和密码
<FORM ACTION="login.asp" METHOD="post">
    <Table border=0>
    <tr><td>用户名:</td>
        <td><INPUT TYPE=text NAME=username VALUE=""></td>
    </tr>
    <tr><td>密码:</td>
        <td><INPUT TYPE=password NAME=password  VALUE=""></td>
    </tr>
    </Table>
    <INPUT TYPE=Submit VALUE=确认提交>
    <INPUT TYPE=reset VALUE=重新输入>
</FORM>

<%else%>
<%
Dim user
dim pwd
user=Request.Form("username")
pwd=Request.Form("password")

if user="fenfang" then
    if pwd="1234" then
        Response.write "用户登录成功"
    else
        Response.write "用户密码无效"
    end if
else
    Response.write "用户无效"
end if
end if
%>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|温柔网 ( 浙ICP备13033583号-8 )

GMT+8, 2024-5-9 02:57 , Processed in 0.033582 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表