| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 846 人关注过本帖
标题:[求助]免费发商机,我被强奸了……
只看楼主 加入收藏
lxhew
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-2-9
收藏
 问题点数:0 回复次数:2 
[求助]免费发商机,我被强奸了……

最近我的商贸通中的免费发商机这一块老是被人用软件群发,害我删都来不及。想在免费发商机页面加入认证码,
各位大大帮忙看看,是哪出错,帮忙指点一下,小的在此先谢了!
(free_ad.asp页代码):
<!--#include file="main.asp"-->


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=citytitle%></title>
<%sql = "select * from SMT_ypxxtwo order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1%>

<script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
<%count = 0
do while not rs.eof%>
subcat[<%=count%>] = new Array("<%= trim(rs("SMT_ypxxtwo"))%>","<%= trim(rs("SMT_ypxxone_id"))%>","<%= trim(rs("SMT_ypxxtwo_id"))%>");
<%count = count + 1
rs.movenext
loop
rs.close
set rs=nothing%>
onecount=<%=count%>;

function changelocation(ypxxone)
{
document.addform.ypxxtwo_id.length = 0;

var ypxxone_id=ypxxone_id;
var i;
document.addform.ypxxtwo_id.options[0] = new Option('请选择小类','');
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == ypxxone)
{
document.addform.ypxxtwo_id.options[document.addform.ypxxtwo_id.length] = new Option(subcat[i][0], subcat[i][2]);
}
}

}
</script>
<%sql = "select * from SMT_ypaddtwo order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1%>
<script language = "JavaScript">
var onecount1;
onecount1=0;
subcat1 = new Array();
<%count = 0
do while not rs.eof%>
subcat1[<%=count%>] = new Array("<%= trim(rs("SMT_addtwo"))%>","<%= trim(rs("SMT_addone_id"))%>","<%= trim(rs("SMT_addtwo_id"))%>");
<%count = count + 1
rs.movenext
loop
rs.close
set rs=nothing%>
onecount1=<%=count%>;

function changelocation1(addone)
{
document.addform.addtwo_id.length = 0;

var addone_id=addone_id;
var i;
document.addform.addtwo_id.options[0] = new Option('请选择市','');
for (i=0;i < onecount1; i++)
{
if (subcat1[i][1] == addone)
{
document.addform.addtwo_id.options[document.addform.addtwo_id.length] = new Option(subcat1[i][0], subcat1[i][2]);
}
}

}
</script>
</head>

<body topmargin="0">
<%SMT_TOP%>
<%randomize timer
regjm=int(rnd*9998)+1%>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top">
<!--==================-->
<table width="80%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr><td height=5></td></tr>
<tr><td height=400>

<script LANGUAGE=JavaScript>
function textLimitCheck(thisArea, maxLength){
if (thisArea.value.length > maxLength){
alert(maxLength + ' 个字限制. \r超出的将自动去除.');
thisArea.value = thisArea.value.substring(0, maxLength);
thisArea.focus();
}
/*回写span的值,当前填写文字的数量*/
messageCount.innerText = thisArea.value.length;
}
</script>
<script language="JavaScript">
<!--
function checkdata() {
if( addform.scatitle.value =="") {
alert("\发布商机出错,下面是产生错误的可能原因:\n\n·请输入完整的商机标题")
return false;
}
if( addform.sca.value =="" || addform.sca.value.length<20) {
alert("\发布商机出错,下面是产生错误的可能原因:\n\n·请输入不少于20个字符的商机内容")
return false;
}
if( addform.ypxxtwo_id.value =="") {
alert("\发布商机出错,下面是产生错误的可能原因:\n\n·商机发布行业必须选择")
return false;
}


return true;
}
// -->
</script>
<%if webkey6=1 then
webkey66
else%>
<table width="80%" border="0" cellspacing="0" cellpadding="0" align=center>
<form name="addform" method="post" action="free_ad_save.asp" onSubmit="return checkdata()">
<input name="regjm" type="hidden" value="<%=regjm%>">
<tr>
<td height=30 align="center" colspan="2"><font color=#666666>带 * 为必填项 免费商机将在发布之日起 <font color="#CC0000"><%=cityscayx%></font> 日内有效</font></td>
</tr>
<tr>
<td width="21%" height=30 align=right><font color=red>*</font>商机标题: &nbsp;</td>
<td width="79%"><input name="scatitle" type="text" size="35" maxlength="15" value=""> <font color=#666666>限15个字符</font></td>
</tr>
<tr>
<td height=30 align=right><font color=red>*</font>商机内容: &nbsp;</td>
<td><p style="line-height:180%"><textarea name="sca" cols=45 rows=10 onkeyUp="textLimitCheck(this, 1000);"></textarea><br><font color=#666666>限 20-1000 个字符 已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字</font></td>
</tr>
<tr>
<td height=30 align=right>商机分类: &nbsp;</td>
<td><select name="scasort">
<option value=0>不分类</option>
<%sql="select * from SMT_scasort order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("SMT_id")%>"><%=rs("SMT_scasort")%></option>
<%rs.movenext
wend
rs.Close()%>
</select></td>
</tr>
<tr>
<td height=30 align=right><font color=red>*</font>发布行业: &nbsp;</td>
<td><select name="ypxxone_id" onChange="changelocation(document.addform.ypxxone_id.options[document.addform.ypxxone_id.selectedIndex].value)">
<option value="" selected>请选择大类</option>
<%
sql="select * from SMT_ypxxone order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("SMT_ypxxone_id")%>"><%=rs("SMT_ypxxone")%></option>
<%rs.movenext
wend
rs.Close()
%>
</select>
<select name="ypxxtwo_id">
<option selected value="">请选择小类</option>
</select></td>
</tr>
<tr>
<td height=30 align=right>发布地区: &nbsp;</td>
<td><select name="addone_id" onChange="changelocation1(document.addform.addone_id.options[document.addform.addone_id.selectedIndex].value)">
<option value="" selected>请选择省</option>
<%sql="select * from SMT_ypaddone order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("SMT_addone_id")%>"><%=rs("SMT_addone")%></option>
<%rs.movenext
wend
rs.Close()
%>
</select>
<select name="addtwo_id">
<option selected value="">请选择市</option>
</select> 默认为 广东/深圳</td>
</tr>
<tr align="center">
<td height=30 colspan="2">&nbsp;&nbsp;&nbsp;<font color=red>*</font><strong>认证码:</strong>
<input type="text" name="regjm1" size="7" style="width:80" class=input2>
<%=regjm%></td>
</tr>
<tr>
<td height=30 align="center" colspan="2"><input type="submit" name="Submit" value=" 提 交 " class="input1"></td>
</tr>
</form>
</table>
<%end if%>
</td></tr>
</table>
<!--==================-->
</td>
</tr>
</table>
<!--====== bottom ========-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor=#ffffff>
<tr><td height=2 bgcolor=#4795EC></td></tr>
<tr>
<td align="center" height=80><%=citybottom%></td>
</tr>
</table>
<script language="javascript">
changelocation(document.addform.ypxxone_id.options[document.addform.ypxxone_id.selectedIndex].value);
</script>
<script language="javascript">
changelocation1(document.addform.addone_id.options[document.addform.addone_id.selectedIndex].value);
</script>
</body>
</html>

搜索更多相关主题的帖子: 商机 强奸 
2007-02-09 14:04
lxhew
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-2-9
收藏
得分:0 

(free_ad_save.asp页代码):

<!--#include file="main.asp"-->
<%
scatitle=request("scatitle")
sca=request("sca")
scasort=request("scasort")
ypxxone_id=request("ypxxone_id")
ypxxtwo_id=request("ypxxtwo_id")
addone_id=request("addone_id")
addtwo_id=request("addtwo_id")
regjm=replace(trim(Request("regjm")),"'","")
regjm1=replace(trim(Request("regjm1")),"'","")

if addone_id="" then
addone_id=28
addtwo_id=31
else
if addtwo_id="" then
response.write"<script>alert('发布商机出错,下面是产生错误的可能原因:\n\n·如果您选择了发布省份,就必须选择地区');history.go(-1);</script>"
response.end
else
if regjm1="" then
response.write "<script>alert('用户登录出错,下面是产生错误的可能原因:\n\n·请输入认证码');history.go(-1);</Script>"
Response.End
else
if regjm<>regjm1 then
response.write "<script>alert('用户登录出错,下面是产生错误的可能原因:\n\n·认证码输入错误');history.go(-1);</Script>"
Response.End
end if
end if
end if
end if


yp_id=0
key1=cityscafree
ldate=cint(cityscayx)
enrol=3

begindate=now()
lastdate=now()+ldate

set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from SMT_sca"
rs.open sql,conn,1,3
rs.addnew
rs("SMT_scatitle")=scatitle
rs("SMT_sca")=sca
rs("SMT_key1")=key1
rs("SMT_yp_id")=yp_id
rs("SMT_scasort")=scasort
rs("SMT_begindate")=begindate
rs("SMT_lastdate")=lastdate
rs("SMT_ypxxone_id")=ypxxone_id
rs("SMT_ypxxtwo_id")=ypxxtwo_id
rs("SMT_addone_id")=addone_id
rs("SMT_addtwo_id")=addtwo_id
rs("SMT_enrol")=enrol
rs.update
rs.close
set rs=nothing

if cityscafree=1 then
response.write"<script>alert('操作成功,谢谢您的参与');window.open('index.asp','_self')</script>"
response.end
elseif cityscafree=0 then
response.write"<script>alert('操作成功,请等待管理员的开通');window.open('index.asp','_self')</script>"
response.end
end if
%>

2007-02-09 14:05
lxhew
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-2-9
收藏
得分:0 

已解决!

2007-02-09 15:41
快速回复:[求助]免费发商机,我被强奸了……
数据加载中...
 
   



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

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