| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1181 人关注过本帖
标题:[求助]一个非常郁闷的事
只看楼主 加入收藏
caor1987
Rank: 1
等 级:新手上路
帖 子:228
专家分:0
注 册:2006-10-15
收藏
得分:0 
回复:(yms123)login1.asp页面的代码发上来看看。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
<title>游客登陆界面</title>
<script language="javascript">
<!--
function checkform()
{
if(document.login.name.value==""){
alert("请输入用户名!");
document.login.name.focus();
return false;
}
if(document.login.password.value==""){
alert("请输入密码!");
document.login.password.focus();
return false;
}
if(document.login.Checkcode.value==""){
alert("验证码不能为空!");
document.login.Checkcode.focus();
return false;
}
}
//-->
</script>
<style type="text/css">
<!--
td{color:#FFFFFF}
-->
</style>
<%
Dim num1
Dim rndnum
Randomize
Do While Len(rndnum)<4
num1=CStr(Chr((57-48)*rnd+48))
rndnum=rndnum&num1
Loop
session("Checkcode")=rndnum
%>
<link href="css/index.css" rel="stylesheet" type="text/css"></head>
<body bgcolor="#000000">
<p>&nbsp;</p>
<table width="900" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="108" colspan="2"><!--#include file="top.asp"--></td>
</tr>
<tr>
<td height="388">&nbsp;</td>
<td width="743" align="center" valign="top"><p>&nbsp;</p>
<table width="900" border="0" align="center" cellspacing="0">
<tr>
<td align="right"><table style="border-style:dotted; border-color:#666666; border-width:thin" width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#333333">
<tr>
<td height="18" class="xiaobiao"><font size=2>尽快加入作品交易会员----</font></td>
</tr>
<tr>
<td height="18"><span class="whitexiaobiao">即可点击下载</span>由全国设计师提供的包含(效果图、尺寸图、矢量图、工艺制作说明)的成套成衣作品。</td>
</tr>
<tr>
<td height=1>&nbsp;</td>
</tr>
<tr>
<td height="18">超过<span class="hot">10,000,000</span>幅最新最全欧美、日韩服装款式、设计手稿、时尚杂志、时装秀、橱窗照片等各类图库<span class="xiaobiao">免费提供</span></td>
</tr>
<tr>
<td height="18">纵览全球最新流行款式,打造热卖爆款。</td>
</tr>
<tr>
<td height="18" align="left">                           <span class="xiaobiao"> ·<a href="index.asp" target="_parent">返回首页</a>  </span></td>
</tr>
<tr>
<td height="3" class="xiaobiao"></td>
</tr>
<tr>
<td height="18" class="xiaobiao">                         ·<a href="../about/member0.asp">查看资费标准</a></td>
</tr>
<tr>
<td height="3" class="xiaobiao"></td>
</tr>
<tr>
<td height="18" class="xiaobiao">                         ·<a href="../about/payment.asp" class="xiaobiao">联系我们 进行充值</a></td>
</tr>
<tr>
<td height="18" class="black">&nbsp;</td>
</tr>
<tr>
<td height="18" align="center" class="whitexiaobiao">中国服装站欢迎您的加盟!</td>
</tr>
<tr>
<td height="18">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
<br>
<br>
<table width="900" border="0" align="center" cellspacing="0">
<tr>
<td width="26%" align="center"><table width="181" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="183" height="305" bgcolor="#CCFF00"><a href="guanggao.asp"><img src="images/guanggaogeishejishide.jpg" width="180" height="300" border="0"></a></td>
</tr>
</table></td>
<td width="74%" align="center"><form action ="checkname.asp" method="post" name="login" onSubmit="return checkform();">
<br>
<br>
<br>
<%if session("U_id")="" and session("C_id")="" then%>
<table width="80%" border="1" cellspacing="0" cellpadding="0" bordercolor="#663366">
<tr>
<td height="30" colspan="3" align="center" valign="middle" class="whitexiaobiao">! 注册即可上传作品 ! </td>
</tr>
<tr>
<td height="58" colspan="3" align="center"><font size="+3"><strong>用 户 登 陆</strong></font></td>
</tr>
<tr>
<td width="20%" height="33" align="right">账 号:</td>
<td width="41%"><input name="name" type="text" class="brown"></td>
<td width="39%" align="center"> <a href="/company/reg_item.asp">厂商注册</a> <a href="/person/person_tiaokuan.asp">设计师注册</a></td>
</tr>
<tr>
<td height="33" align="right" width="20%">密 码:</td>
<td><input name="password" type="password" class="brown"></td>
<td rowspan="2" align="center"><input type="submit" name="Submit" value="登陆">&nbsp;
<a href="zhaohuimima.asp"><input type="button" name="Submit2" value="忘密"></a></td>
</tr>
<tr>
<td height="33" width="20%" align="right">验证码:</td>
<td bgcolor="#ECE9D8"><input name="Checkcode" type="text" class="brown" size="10"><font color=#000000><strong><%=session("Checkcode")%></strong></font></td>
</tr>
<tr>
<td height="46" colspan="3" align="center"><input type="radio" name="r1" value="0" checked="checked">
设计师 <input type="radio" name="r1" value="1">
厂商 </td>
</tr>
</table>
<%else if session("U_id")<>"" then%>
<table width="175" border="1" bordercolor="#333333" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
<tr>
<td height="40" class="whitexi">&nbsp;欢迎您,<%=session("User_id")%>用户</td>
</tr>
<tr>
<td class="whitexi"><a href="person/default.asp">我的首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="person/person_exit.asp">退出登陆</a></td>
</tr>
</table>
<% else if session("C_id")<>"" then %>
<table width="175" border="1" bordercolor="#333333" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
<tr>
<td height="40" class="whitexi">&nbsp;欢迎您,<%=session("user")%>用户</td>
</tr>
<tr>
<td class="whitexi"><a href="company/default.asp">我的首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="company/company_exit.asp">退出登陆</a></td>
</tr>
</table>

<% end if %>
<% end if %>
<% end if %>

<br>
<br>
<br>
<br>
<br>
<br>
</form></td>
</tr>
</table>
<br> </td>
</tr>
<tr>
<td height="121" colspan="2"><!--#include file="bottom.asp"--></td>
</tr>
</table>


</body>
</html>
应该不会和这个页面有关系吧??

2007-03-05 17:30
caor1987
Rank: 1
等 级:新手上路
帖 子:228
专家分:0
注 册:2006-10-15
收藏
得分:0 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
<title>游客登陆界面</title>
<script language="javascript">
<!--
function checkform()
{
if(document.login.name.value==""){
alert("请输入用户名!");
document.login.name.focus();
return false;
}
if(document.login.password.value==""){
alert("请输入密码!");
document.login.password.focus();
return false;
}
if(document.login.Checkcode.value==""){
alert("验证码不能为空!");
document.login.Checkcode.focus();
return false;
}
}
//-->
</script>
<style type="text/css">
<!--
td{color:#FFFFFF}
-->
</style>
<%
Dim num1
Dim rndnum
Randomize
Do While Len(rndnum)<4
num1=CStr(Chr((57-48)*rnd+48))
rndnum=rndnum&num1
Loop
session("Checkcode")=rndnum
%>
<link href="css/index.css" rel="stylesheet" type="text/css"></head>
<body bgcolor="#000000">
<p>&nbsp;</p>
<table width="900" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="108" colspan="2"><!--#include file="top.asp"--></td>
</tr>
<tr>
<td height="388">&nbsp;</td>
<td width="743" align="center" valign="top"><p>&nbsp;</p>
<table width="900" border="0" align="center" cellspacing="0">
<tr>
<td align="right"><table style="border-style:dotted; border-color:#666666; border-width:thin" width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#333333">
<tr>
<td height="18" class="xiaobiao"><font size=2>尽快加入作品交易会员----</font></td>
</tr>
<tr>
<td height="18"><span class="whitexiaobiao">即可点击下载</span>由全国设计师提供的包含(效果图、尺寸图、矢量图、工艺制作说明)的成套成衣作品。</td>
</tr>
<tr>
<td height=1>&nbsp;</td>
</tr>
<tr>
<td height="18">超过<span class="hot">10,000,000</span>幅最新最全欧美、日韩服装款式、设计手稿、时尚杂志、时装秀、橱窗照片等各类图库<span class="xiaobiao">免费提供</span></td>
</tr>
<tr>
<td height="18">纵览全球最新流行款式,打造热卖爆款。</td>
</tr>
<tr>
<td height="18" align="left">                           <span class="xiaobiao"> ·<a href="index.asp" target="_parent">返回首页</a>  </span></td>
</tr>
<tr>
<td height="3" class="xiaobiao"></td>
</tr>
<tr>
<td height="18" class="xiaobiao">                         ·<a href="../about/member0.asp">查看资费标准</a></td>
</tr>
<tr>
<td height="3" class="xiaobiao"></td>
</tr>
<tr>
<td height="18" class="xiaobiao">                         ·<a href="../about/payment.asp" class="xiaobiao">联系我们 进行充值</a></td>
</tr>
<tr>
<td height="18" class="black">&nbsp;</td>
</tr>
<tr>
<td height="18" align="center" class="whitexiaobiao">中国服装站欢迎您的加盟!</td>
</tr>
<tr>
<td height="18">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
<br>
<br>
<table width="900" border="0" align="center" cellspacing="0">
<tr>
<td width="26%" align="center"><table width="181" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="183" height="305" bgcolor="#CCFF00"><a href="guanggao.asp"><img src="images/guanggaogeishejishide.jpg" width="180" height="300" border="0"></a></td>
</tr>
</table></td>
<td width="74%" align="center"><form action ="checkname.asp" method="post" name="login" onSubmit="return checkform();">
<br>
<br>
<br>
<%if session("U_id")="" and session("C_id")="" then%>
<table width="80%" border="1" cellspacing="0" cellpadding="0" bordercolor="#663366">
<tr>
<td height="30" colspan="3" align="center" valign="middle" class="whitexiaobiao">! 注册即可上传作品 ! </td>
</tr>
<tr>
<td height="58" colspan="3" align="center"><font size="+3"><strong>用 户 登 陆</strong></font></td>
</tr>
<tr>
<td width="20%" height="33" align="right">账 号:</td>
<td width="41%"><input name="name" type="text" class="brown"></td>
<td width="39%" align="center"> <a href="/company/reg_item.asp">厂商注册</a> <a href="/person/person_tiaokuan.asp">设计师注册</a></td>
</tr>
<tr>
<td height="33" align="right" width="20%">密 码:</td>
<td><input name="password" type="password" class="brown"></td>
<td rowspan="2" align="center"><input type="submit" name="Submit" value="登陆">&nbsp;
<a href="zhaohuimima.asp"><input type="button" name="Submit2" value="忘密"></a></td>
</tr>
<tr>
<td height="33" width="20%" align="right">验证码:</td>
<td bgcolor="#ECE9D8"><input name="Checkcode" type="text" class="brown" size="10"><font color=#000000><strong><%=session("Checkcode")%></strong></font></td>
</tr>
<tr>
<td height="46" colspan="3" align="center"><input type="radio" name="r1" value="0" checked="checked">
设计师 <input type="radio" name="r1" value="1">
厂商 </td>
</tr>
</table>
<%else if session("U_id")<>"" then%>
<table width="175" border="1" bordercolor="#333333" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
<tr>
<td height="40" class="whitexi">&nbsp;欢迎您,<%=session("User_id")%>用户</td>
</tr>
<tr>
<td class="whitexi"><a href="person/default.asp">我的首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="person/person_exit.asp">退出登陆</a></td>
</tr>
</table>
<% else if session("C_id")<>"" then %>
<table width="175" border="1" bordercolor="#333333" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
<tr>
<td height="40" class="whitexi">&nbsp;欢迎您,<%=session("user")%>用户</td>
</tr>
<tr>
<td class="whitexi"><a href="company/default.asp">我的首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="company/company_exit.asp">退出登陆</a></td>
</tr>
</table>

<% end if %>
<% end if %>
<% end if %>

<br>
<br>
<br>
<br>
<br>
<br>
</form></td>
</tr>
</table>
<br> </td>
</tr>
<tr>
<td height="121" colspan="2"><!--#include file="bottom.asp"--></td>
</tr>
</table>


</body>
</html>
谢谢了,大侠!!!

2007-03-05 17:30
caor1987
Rank: 1
等 级:新手上路
帖 子:228
专家分:0
注 册:2006-10-15
收藏
得分:0 
回复:(yms123)login1.asp页面的代码发上来看看。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
<title>游客登陆界面</title>
<script language="javascript">
<!--
function checkform()
{
if(document.login.name.value==""){
alert("请输入用户名!");
document.login.name.focus();
return false;
}
if(document.login.password.value==""){
alert("请输入密码!");
document.login.password.focus();
return false;
}
if(document.login.Checkcode.value==""){
alert("验证码不能为空!");
document.login.Checkcode.focus();
return false;
}
}
//-->
</script>
<style type="text/css">
<!--
td{color:#FFFFFF}
-->
</style>
<%
Dim num1
Dim rndnum
Randomize
Do While Len(rndnum)<4
num1=CStr(Chr((57-48)*rnd+48))
rndnum=rndnum&num1
Loop
session("Checkcode")=rndnum
%>
<link href="css/index.css" rel="stylesheet" type="text/css"></head>
<body bgcolor="#000000">
<p>&nbsp;</p>
<table width="900" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="108" colspan="2"><!--#include file="top.asp"--></td>
</tr>
<tr>
<td height="388">&nbsp;</td>
<td width="743" align="center" valign="top"><p>&nbsp;</p>
<table width="900" border="0" align="center" cellspacing="0">
<tr>
<td align="right"><table style="border-style:dotted; border-color:#666666; border-width:thin" width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#333333">
<tr>
<td height="18" class="xiaobiao"><font size=2>尽快加入作品交易会员----</font></td>
</tr>
<tr>
<td height="18"><span class="whitexiaobiao">即可点击下载</span>由全国设计师提供的包含(效果图、尺寸图、矢量图、工艺制作说明)的成套成衣作品。</td>
</tr>
<tr>
<td height=1>&nbsp;</td>
</tr>
<tr>
<td height="18">超过<span class="hot">10,000,000</span>幅最新最全欧美、日韩服装款式、设计手稿、时尚杂志、时装秀、橱窗照片等各类图库<span class="xiaobiao">免费提供</span></td>
</tr>
<tr>
<td height="18">纵览全球最新流行款式,打造热卖爆款。</td>
</tr>
<tr>
<td height="18" align="left">                           <span class="xiaobiao"> ·<a href="index.asp" target="_parent">返回首页</a>  </span></td>
</tr>
<tr>
<td height="3" class="xiaobiao"></td>
</tr>
<tr>
<td height="18" class="xiaobiao">                         ·<a href="../about/member0.asp">查看资费标准</a></td>
</tr>
<tr>
<td height="3" class="xiaobiao"></td>
</tr>
<tr>
<td height="18" class="xiaobiao">                         ·<a href="../about/payment.asp" class="xiaobiao">联系我们 进行充值</a></td>
</tr>
<tr>
<td height="18" class="black">&nbsp;</td>
</tr>
<tr>
<td height="18" align="center" class="whitexiaobiao">中国服装站欢迎您的加盟!</td>
</tr>
<tr>
<td height="18">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
<br>
<br>
<table width="900" border="0" align="center" cellspacing="0">
<tr>
<td width="26%" align="center"><table width="181" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="183" height="305" bgcolor="#CCFF00"><a href="guanggao.asp"><img src="images/guanggaogeishejishide.jpg" width="180" height="300" border="0"></a></td>
</tr>
</table></td>
<td width="74%" align="center"><form action ="checkname.asp" method="post" name="login" onSubmit="return checkform();">
<br>
<br>
<br>
<%if session("U_id")="" and session("C_id")="" then%>
<table width="80%" border="1" cellspacing="0" cellpadding="0" bordercolor="#663366">
<tr>
<td height="30" colspan="3" align="center" valign="middle" class="whitexiaobiao">! 注册即可上传作品 ! </td>
</tr>
<tr>
<td height="58" colspan="3" align="center"><font size="+3"><strong>用 户 登 陆</strong></font></td>
</tr>
<tr>
<td width="20%" height="33" align="right">账 号:</td>
<td width="41%"><input name="name" type="text" class="brown"></td>
<td width="39%" align="center"> <a href="/company/reg_item.asp">厂商注册</a> <a href="/person/person_tiaokuan.asp">设计师注册</a></td>
</tr>
<tr>
<td height="33" align="right" width="20%">密 码:</td>
<td><input name="password" type="password" class="brown"></td>
<td rowspan="2" align="center"><input type="submit" name="Submit" value="登陆">&nbsp;
<a href="zhaohuimima.asp"><input type="button" name="Submit2" value="忘密"></a></td>
</tr>
<tr>
<td height="33" width="20%" align="right">验证码:</td>
<td bgcolor="#ECE9D8"><input name="Checkcode" type="text" class="brown" size="10"><font color=#000000><strong><%=session("Checkcode")%></strong></font></td>
</tr>
<tr>
<td height="46" colspan="3" align="center"><input type="radio" name="r1" value="0" checked="checked">
设计师 <input type="radio" name="r1" value="1">
厂商 </td>
</tr>
</table>
<%else if session("U_id")<>"" then%>
<table width="175" border="1" bordercolor="#333333" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
<tr>
<td height="40" class="whitexi">&nbsp;欢迎您,<%=session("User_id")%>用户</td>
</tr>
<tr>
<td class="whitexi"><a href="person/default.asp">我的首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="person/person_exit.asp">退出登陆</a></td>
</tr>
</table>
<% else if session("C_id")<>"" then %>
<table width="175" border="1" bordercolor="#333333" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
<tr>
<td height="40" class="whitexi">&nbsp;欢迎您,<%=session("user")%>用户</td>
</tr>
<tr>
<td class="whitexi"><a href="company/default.asp">我的首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="company/company_exit.asp">退出登陆</a></td>
</tr>
</table>

<% end if %>
<% end if %>
<% end if %>

<br>
<br>
<br>
<br>
<br>
<br>
</form></td>
</tr>
</table>
<br> </td>
</tr>
<tr>
<td height="121" colspan="2"><!--#include file="bottom.asp"--></td>
</tr>
</table>


</body>
</html>
不会和这个有关系吧

2007-03-06 09:18
在编程中沦落
Rank: 2
等 级:新手上路
威 望:4
帖 子:411
专家分:0
注 册:2005-12-25
收藏
得分:0 
没看到服务器端验证代码,客户端验证可以本地消除的…………

Logincheck是怎么写的呢…………?

2007-03-06 17:05
dh2007
Rank: 1
等 级:新手上路
帖 子:228
专家分:0
注 册:2007-2-28
收藏
得分:0 
我认为
javascript验证其实只能起一个提示的作用,
只要把你这个登陆页面下载下来,自己仿照做一个登陆表单,就可以跳过javascript验证直接交到login页面了

2007-03-06 17:43
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:0 
以下是引用dh2007在2007-3-6 17:43:11的发言:
我认为
javascript验证其实只能起一个提示的作用,
只要把你这个登陆页面下载下来,自己仿照做一个登陆表单,就可以跳过javascript验证直接交到login页面了

正确,甚至有些情况不用下在登陆页面,禁用浏览器的Javascript脚本就可以跳过验证了。
楼主这个代码里没看见服务器端的用户验证代码,不知楼主写在那里了?光有Javascript是不行的,因为就算Javascript写的再严密,Javascript终归所有代码都回下载到客户端。只要懂程序的人看过后绕过Javascript不是什么难事,但服务器端就不一样了,服务器端代码不会给客户端公开,所以无论如何绕开服务器端验证比绕开客户端的相对要难得多。

2007-03-06 21:00
caor1987
Rank: 1
等 级:新手上路
帖 子:228
专家分:0
注 册:2006-10-15
收藏
得分:0 
客户端我也有验证的代码啊~
他不会也能跳过吧?
我现在都不知道是怎样跳过的,知道了我就有方法屏蔽他了。
2007-03-07 14:18
快速回复:[求助]一个非常郁闷的事
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.036551 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved