日期:2014-05-17  浏览次数:21057 次

怎样改造动网论坛的首页登陆调用,登陆成功和失败都转到我指定的页,而不是论坛中去?
用动网论坛7.1.0sp1,在网站首页调用登陆,想成功后转到succ.htm去,失败的话到fail.htm去,重新登陆,现在登陆成功的话就到论坛首页去了,登陆失败的话也是到论坛中去,只不过提示用户名或密码错误,我不想这样,该怎么办?
另外在调用时为什么我的判断输入不能为空不起作用呢,请帮忙看下!
<form   name= "form1 "   action= "/bbs/login.asp?action=chk "   method= "post "   onSubmit= "return   CheckLogin() ">
<tbody>
<tr>
<td   class= "tablebody1 "   width= "100% "   height= "40 ">
<p   align= "left "> 用户名: <input   maxLength= "16 "   size= "12 "   name= "username "> <br>
密   码:   <input   type= "password "   maxLength= "20 "   size= "12 "   value   name= "password ">   <br>
<font   color= "#999999 "> 验证密码: </font>  
<input   type= "text "   name= "codestr "   maxlength= "4 "   size= "4 ">
&nbsp; <img   src= "/bbs/DV_getcode.asp "> <br>
COOKIES: <select   name= "CookieDate ">
<option   value= "0 "   selected> 不保存 </option>
<option   value= "1 "> 保存一天 </option>
<option   value= "2 "> 保存一月 </option>
<option   value= "3 "> 保存一年 </option>
</select>   <br>
<input   type= "submit "   value= "登录 "   name= "submit ">   <input   type= "reset "   value= "清除 "   name= "B3 ">   <input   name= "Submit2 "   type= "button "   onclick= "window.open(/user/reg.asp ', '_blank ', ' ') "   style= "width:50px;   height:20px "   value= "新注册 "> </p>
</td>
</tr>
</FORM>
<script>
function   CheckLogin(){
        if(document.form1.username.value== " "){
                alert( "会员帐号不能为空! ");
                obj.UserName.focus();
                return   false;
        }
if(document.form1.password.value== " "){
                alert( "请输入密码! ");
                obj.PassWord.focus();
                return   false;
        }
if(document.form1.codestr.value== " "){
                alert( "请输入验证码! ");
                obj.codestr.focus();
                return   false;
        }
        return   true;
}
}
</script>

------解决方案--------------------
写自己的登陆处理页面.或者,修改动网代码(或者不用修改,传个参数)