如何在网页上制作一个简单的用户登录页面?能发个代码给我吗?

不需要注册的!固定一密码就可以了!最好是不需要用到数据库的!

第1个回答  推荐于2016-05-30
<table id="logon" height="92" cellspacing="0" cellpadding="0" width="180" border="0">
<form name="Form1" method="post" action="?act=login" id="Form1">
<tr>
<td valign="middle" align="center" width="48" height="20">帐 号:</td>
<td valign="middle" width="122">
<input name="UserName" id="TextName" type="text" class="input" onmouseover="this.style.backgroundColor='#ffffff'" onmouseout="this.style.backgroundColor='#f4f4f4'" maxlength="16" size="12" style="WIDTH: 110px; HEIGHT: 20px" /></td>
</tr>
<tr>
<td valign="middle" align="center" height="20">密 码:</td>
<td valign="middle">
<input name="UserPass" id="TextPassword" type="password" class="input" onmouseover="this.style.backgroundColor='#ffffff'" onmouseout="this.style.backgroundColor='#f4f4f4'" maxlength="16" size="13" TextMode="Password" style="WIDTH: 110px; HEIGHT: 20px" /></td>
</tr>
<tr valign="middle">
<td align="center" colspan="2" height="15"><input type="submit" value="提交" name="B1"> <input type="reset" value="重置" name="B2"><input type="hidden" value="login" name="act"></td>
</tr></form>
</table>
<%
if request("act")="login" then
username=request.form("username")
password=request.form("password")

if password = "123456" then
Response.Cookies("UserName")=UserName
Response.Write ("登陆成功")
end if

end if
%>本回答被提问者采纳
相似回答