挚爱j 发表于 2010-8-10 20:46:57

高手来解决下。谢谢。~~~

我用网站注册 strMd5Pwd 不自动生成。

用GM工具就自动生成。怎么回事???希望高手帮解决下谢谢。

leonjaykai 发表于 2010-8-10 22:00:18

是不是網站沒寫編程進資料庫看一下囉

挚爱j 发表于 2010-8-10 22:13:35

<%
                                                                                                action=trim(lcase(request("action")))
                                                                                                if action="do" then
                                                                                                        if not IsSelfRefer() then
                                                                                                                response.Write("你想从哪里注册?")
                                                                                                                response.end
                                                                                                        end if
                                                                                                        If Request("validator")<>Session("Getcode")Then
                                                                Response.write("<script>alert('哈!主人您验证码输入错误,请重新输入!');window.history.back();</script>!")
                                                                                                                Response.End
                                                                                                        End If
                                                                                                        accountid=trim(checkstr(request("accountid")))
                                                                                                        passwd=trim(checkstr(request("passwd")))
                                                                                                        repasswd=trim(checkstr(request("repasswd")))
                                                                                                        SocNo=trim(checkstr(request("SocNo")))
                                                                                                        if IsValidUserName(accountid) and IsValidUserName(passwd) and IsValidUserName(repasswd) then
                                set rs=conn.execute("select * from where strAccountID='"&accountid&"' and strSocqq='"&Socqq&"'")
                                                                                                                if not rs.eof then
                        response.write("<script>alert('哈!主人注册失败,相同的ID已经存在,请更换!');window.history.back();</script>!")
                                                                                                                else
                        conn.execute("insert into (strAccountID,strPasswd,strSocNo,idays) Values('"&accountid&"','"&Passwd&"','"&SocNo&"',6)")
                        response.write("<script>alert('恭喜!主人您的账号注册已经成功了!!');window.history.back();</script>!")
                                                                                                                end if
                                                                                                        else
                                                                                                                response.write("<div style='padding:10px;font-size:14px;color:red;'>账号、密码不合法,请重新输入!</div>")
                                                                                                        end if
                                                                                                else
                                                                                                %>
                                                                        <table width="95%" border="0" cellspacing="0" cellpadding="0">
                                                                                <tr>
                                                                                        <td align="left">                                                                               
                                                                                                <script type="text/JavaScript">
                                                                                                <!--
                                                                                                        function reloadcode(obj)
                                                                                                        {
                                                                                                                obj.src='validator.asp?'+Math.floor(Math.random() *100);
                                                                                                        }
                                                                                                        function doreg(){
                                                                                                                if(document.getElementById('accountid').value==''||document.getElementById('accountid').value.length<4)
                                                                                                                {
                                                                                                                        alert('账号为空或长度不对,请输入4-20个字符');
                                                                                                                        document.getElementById('accountid').focus();
                                                                                                                        return false;
                                                                                                                }
                                                                                                                if(document.getElementById('passwd').value==''||document.getElementById('passwd').value.length<4)
                                                                                                                {
                                                                                                                        alert('密码为空或长度不对,请输入4-20个字符');
                                                                                                                        document.getElementById('pass').focus();
                                                                                                                        return false;
                                                                                                                }
                                                                                                                if(document.getElementById('repasswd').value!=document.getElementById('repasswd').value)
                                                                                                                {
                                                                                                                        alert('两次输入的密码不一致');
                                                                                                                        return false;
                                                                                                                }
                                                                                                                if(document.getElementById('SocNo').value==''||document.getElementById('SocNo').value.length<4)
                                                                                                                {
                                                                                                                        alert('超级密码字数不对,请输入15-20个字符');
                                                                                                                        document.getElementById('SocNo').focus();
                                                                                                                        return false;
                                                                                                                }
                                                                                                                if(document.getElementById('validator').value==''||document.getElementById('validator').value.length<5)
                                                                                                                {
                                                                                                                        alert('验证码输入有误');
                                                                                                                        document.getElementById('validator').focus();
                                                                                                                        return false;
                                                                                                                }
                                                                                                                jbFrm.submit();
                                                                                                        }
                                                                                                -->
                                                                                                </script>
                                                                                                <form id="jbFrm" name="jbFrm" method="post" action="index_reg.asp?action=do">
                                                                                                  <table width="100%" height="559" border="0" cellpadding="0" cellspacing="0" class="listTbl">
                                                                                                        <tr>
                                                                                                                <th height="25" align="left" colspan="3"> </th>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                                <td width="76" height="25" align="right"><span class="STYLE7">用户账号:</span></td>
                                                                                                          <td width="220" align="left"><input name="accountid" type="text" class="input" id="accountid" style="width:200px;" maxlength="20" /></td>
                                                                                                          <td width="196" align="left"> </td>
                                                                                                        </tr>
                                                                                                        <tr><td width="76" height="25" align="right"> </td>
                                                                                                                <td colspan="2" align="left"><span class="STYLE7">* 4-20字符,使用是数字和字母组合,方可对ID保密!</span></td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                                <td width="76" height="25" align="right"><span class="STYLE7">登陆密码:</span></td>
                                                                                                                <td align="left"><input name="passwd" type="password" class="input" id="passwd" style="width:200px;" maxlength="20" /></td>
                                                                                                          <td align="left"> </td>
                                                                                                        </tr>
                                                                                                        <tr><td width="76" height="25" align="right"> </td>
                                                                                                                <td colspan="2" align="left"><span class="STYLE7">* 4-20字符,使用是数字和字母组合,方可对ID保密!</span></td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                                <td width="76" height="25" align="right"><span class="STYLE7">确认密码:</span></td>
                                                                                                                <td align="left"><input name="repasswd" type="password" class="input" id="repasswd" style="width:200px;" maxlength="20" /></td>
                                                                                                          <td align="left"> </td>
                                                                                                        </tr>
                                                                                                        <tr><td width="76" height="25" align="right"> </td>
                                                                                                                <td colspan="2" align="left"><span class="STYLE7">* 4-20字符,使用是数字和字母组合,方可对ID保密!</span></td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                                <td width="76" height="25" align="right"><span class="STYLE7">超级密码:</span></td>
                                                                                                          <td align="left"><input name="SocNo" type="text" class="input" id="SocNo" style="width:200px;" maxlength="20" /></td>
                                                                                                          <td align="left"> </td>
                                                                                                        </tr>
                                                                                                        <tr><td width="76" height="25" align="right"> </td>
                                                                                                                <td colspan="2" align="left"><span class="STYLE7">* 15-20字符,修改密码及找回密码的凭证</span></td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                                <td width="76" height="25" align="right"><span class="STYLE7">验证码:</span></td>
                                                                                                                <td align="left"><input type="text" name="validator" id="validator" class="input" style="width:60px;" />&nbsp;<img onClick="JavaScript:reloadcode(this);" style="cursor:hand;" id="vcode" src="validator.asp?<%=Rnd(100)%>" border="0" alt="如看不清,请点击刷新." align="absmiddle" /></td>
                                                                                                          <td align="left"> </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                                <td height="18" align="right"><%end if%>
                                                          <span class="STYLE8">重点提示:</span></td>
                                                                                                          <td height="45" colspan="2" align="left"><span class="STYLE8"><span class="STYLE7">**</span><span class="STYLE7">*</span><span class="STYLE7">*</span>请填写正确,才能找回相应资料信息<span class="STYLE7">*</span><span class="STYLE7">*</span><span class="STYLE7">*</span></span></td>
                                                                                                <tr>
                                                                                                      <td height="17">&nbsp;</td>
                                                                                                      <td height="53" align="center" valign="middle" bgcolor="#999999"><input name="按钮" type="button" class="btns" onClick="javascript:doreg()" value="提 交 注 册 信 息" /></td>
                                                                                    <td height="53" align="left"> </td>
                                                                                        </table>
                                                                                          </form>
                                                                                                <p> </p>                                                                                  </td>
                                                                                </tr>
                                                                        </table></td>
                      <td width="65" background="imagenesJP/ko8.jpg"> </td>
                      </tr>
                  <tr>
                      <td><img src="imagenesJP/ko4.jpg" width="65" height="44" /></td>
                      <td background="imagenesJP/ko7.jpg"> </td>
                      <td><img src="imagenesJP/ko5.jpg" width="65" height="44" /></td>
                      </tr>
                  
                </table>                                                 
                          <td width="28" align="center" valign="top">                                </tr>
                               
                                <tr>
                                  <td height="10" colspan="4">&nbsp;</td>
                          </tr>
                                <tr>
                                  <td align="right"> </td>
                              <td colspan="2" align="right"><img src="imagenesJP/KOlatin3.jpg" width="920" height="92" /></td>
                              <td align="right"> </td>
                                </tr>
                        </table></td></tr>
</table>
                                </td>               
            </tr>
      </table>
      <map name="Map" id="Map">
      <area shape="rect" coords="18, 5, 231, 80" href="index_download.asp">
      </map>
</div>


<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">

<map name="Map3" id="Map3"><area shape="rect" coords="11,7,236,66" href="index_nns.asp" />
</map>
<map name="Map4" id="Map4">
<area shape="rect" coords="13, 8, 233, 66" href="dingfengko.5d6d.com" />
</map>
<map name="Map5" id="Map5">
<area shape="rect" coords="11, 9, 235, 65" href="dingfengko.5d6d.com" />
</map></body>
</html>


这个是代码.大哥帮下啊.看下哪里出了情况.急死

挚爱j 发表于 2010-8-10 22:14:19

关于md5的确实没看到.怎么解决啊?

leonjaykai 发表于 2010-8-11 16:09:27

去下一個網站模版來拆開看
页: [1]
查看完整版本: 高手来解决下。谢谢。~~~