register.JSP
---------------------------------------------------------------------------------
file://全局变量定义
globalTableName = "bbs_users";
parentKey = "BBS用户资料";
parentValue = "";
dbName = "mhoa";
%>
String u = (String)requestHt.get("用户名");
if( u==null ) u="";
u = u.trim();
String errorString = "";
if( isPost && !nt.isDate((String)requestHt.get("date出生时间")) ){
errorString = "请填写正确的出生时间!";
}else if( isPost && !((String)requestHt.get("密码")).equals((String)requestHt.get("nouse确认密码")) ){
errorString = "请填写正确的密码!";
}else if( isPost && ( u==null || u.equals("") ) ){
errorString = "请填写用户名!";
}else if( isPost && isAdd && nt.executeQuery(dbName,"select * from "+ globalTableName +" where k='用户名' and v='"+u+"' ")>0 ){
errorString = "已经存在此用户名!";
}
if( isPost && !errorString.equals("") )
{
out.println("");
return;
}
if( isAdd ){
requestHt.put("注册日期",(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS")).format(new Java.util.Date()) );
}
//
out.println( "<!-- 1658: " + nt.toDB( requestHt ) + " -->" );
//
if( isDelete )
response.sendRedirect( request.getRequestURI() );
%>
闵行办公自动化 系统BBS
![]() |
|
title=Search
src="images/top10.gif" align=absMiddle border=0 name=search width="15" height="15"> 注册 | title=Search src="images/userlist.gif" align=absMiddle border=0 name=search width="16" height="16"> 个人资料 | title="Members List" src="images/yj.gif" align=absMiddle border=0 name=members width="16" height="16"> 用户登入 | title=Search src="images/icon_search.gif" align=absMiddle border=0 name=search width="16" height="15"> 论坛搜索 | title=Search src="images/gohome.gif" align=absMiddle border=0 name=search width="15" height="15"> 返回论坛首页 | title=Search src="images/gohome.gif" align=absMiddle border=0 name=search width="15" height="15"> 返回OA首页 |
| 用户注册 |
RM name="frm" method="post" action="">
| 用户名: | " value="" > |
| 密 码: | out.print("text"); else out.print("password"); %>" name="密码" size="30" class="b"> |
| 确认密码: | |
| E-Mail: | E-mail" size="30" class="b"> |
| ICQ号码: | |
| OICQ号码: | |
| 出生时间: | |
|
个性签名:
你可以选择使用个性签名 它将显示在你所发布的信息的底部 | |
删除本用户:
|
" value="确定" class="b">
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10752043/viewspace-991620/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10752043/viewspace-991620/

1027

被折叠的 条评论
为什么被折叠?



