首页
印 像 新 闻 系 统
网站首页 公告信息 编程实例 PHP函数 摄影无界 全景展示 我的作品 意见专栏
 

用户登录代码

【2005年12月31日 12:46:14】 【阅读:次】 【字体:大 中 小 默认】 【背景:#换背景 #换背景 #换背景 #换背景 #换背景 #换背景 #换背景 默认】

由于时间关系,以后会发布完善些的登陆源程序!

<%
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="">115000</td>
    </tr>
    <tr><td>密码:</td>
        <td><INPUT TYPE=password NAME=password  VALUE="">115000</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="115000" then
    if pwd="115000" then
        Response.write "用户登录成功"
    else
        Response.write "用户密码无效"
    end if
else
    Response.write "用户无效"
end if
end if
%>


(『印像空间』 【本文来源:『学习笔记』】 【作者:未知】 【录入:留印】)
限200字,剩余 字
关 键 字:
    
搜索条件: