创立帮派申请页面
编程学堂
题目难度:★★★★
读者求助:我看到一些论坛可以创建帮派系统,非常好玩,于是开始研究该系统的原理。研究中碰到很多小问题,我都一一解决了,可在创立帮派申请页面处碰到了难题,希望得到一些指点。
网页设计师 五月之梦:你发来的代码我都看了,主要是缺少一些数据判断。我给你展示一段代码,关键代码如下所示(完整代码下载地址:http://www.icpcw.com/bzsoft):
if GroupName=" " then
Errmsg=Errmsg+"
"+"
founderr=true
elseif strLength(GroupNam
e)>12 then
Errmsg=Errmsg+"
"+"
founderr=true
end if
if cint(MenpaiAttri)<>0 then
if not isInteger(Request.form("userwealth")) then
Errmsg=Errmsg+"
"+"
founderr=true
elseif int(Request.form("userpower"))>mypower then
Errmsg=Errmsg+"
"+"
founderr=true
if cint(new_menpai_setting(7))=1 then
Sucmsg=Sucmsg+"
"+"