用户注册
<%
action=trim(Request("action"))
UserNick=trim(Request("UserNick"))
if action="register" then checkpass=true
if len(UserNick)<1 then checkpass=false
'打开用户资料表,用AddNew向数据库请求添加新记录,
向部分字段赋值,用Update写入
if checkpass then
rs.open "用户资料表",cn,adOpenDynamic,3
rs.AddNew
rs("用户账号")=UserNick
rs.Update
rs.close
Response.Redirect"yfzl.asp"
end if
%>
<html>
<body>
<!--#include file="glsd_t.asp"-->
<form action="" method="post">
<input type="hidden" name="action" value="register">
用户帐号:<input type="text" name="UserNick">
<input type="submit" name="Submit" value="用户注册">
</form>
</body>
</html>