永发信息网

关于ASP无法执行添加、保存、修改命令。

答案:2  悬赏:80  手机版
解决时间 2021-04-24 17:23
  • 提问者网友:趣果有间
  • 2021-04-24 03:51

我在网上下载了一个ASP程序,很喜欢;可是默认的后台功能有限制;不支持新闻添加、修改、保存等三项功能,我使用的数据库是MDB 格式的,编写新闻后一点击添加,便会转到某个指定页面,比如说转到 www.163.com 等等,保存修改添加功能被禁止;我尝试过其它同类页面替换,但都出现错误,后台新闻添加页面代码如下:

<script language = "JavaScript">
var onecount;
subcat = new Array();

onecount=0;

function changelocation(locationid)
{
document.myform.SmallClassName.length = 1;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.SmallClassName.options[document.myform.SmallClassName.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}

function CheckForm()
{

if (document.myform.title.value.length == 0) {
alert("新闻标题没有填写.");
document.myform.title.focus();
return false;
}
if (document.myform.BigClassName.value.length == 0) {
alert("新闻大类没有选");
document.myform.BigClassName.focus();
return false;
}

if (document.myform.user.value.length == 0) {
alert("新闻发布人没有填写");
document.myform.user.focus();
return false;
}
}
</script>

<script language="javascript">
<!--
if (window == top)top.location.href = "Default.asp";
// -->
</script>
<html>
<head>
<title>金企网络网站管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.back_southidc{BACKGROUND-IMAGE:url('image/titlebg.gif');COLOR:000000;}
.table_southidc{BACKGROUND-COLOR: A4B6D7;}
.td_southidc{BACKGROUND-COLOR: F2F8FF;}
.tr_southidc{BACKGROUND-COLOR: ECF5FF;}

.t1 {font:12px 宋体;color:#000000}
.t2 {font:12px 宋体;color:#ffffff}
.t3 {font:12px 宋体;color:#ffff00}
.t4 {font:12px 宋体;color:#800000}
.t5 {font:12px 宋体;color:#191970}

.weiqun:hover{
Font-unline:yes;
font-family: "宋体";
color: #FFFFFF;
text-decoration: underline;
background-color: #CCCCCC;
}
td {
font-size: 12px;
}

a:link {
color: #000000;
text-decoration: none;
}
a:active {
color: #000000;
text-decoration: none;
}
a:visited {
color: #000000;
text-decoration: none;
}
.tit {
font-size: 14px;
}
-->
</style>
<body>

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<table width="95%" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
<form method="POST" name="myform" onSubmit="return CheckForm();" action="News_save.asp?action=Add" target="_self">
<tr>
<td height="30" colspan="3" align="center" class="back_southidc">增加新闻</td>
</tr>
<tr bgcolor="#ECF5FF">
<td width="155" height="25"><font color="#FF0000">*</font>新闻标题:</td>
<td colspan="2"> <input name="title" type="text" class="input" size="50" maxlength="200"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="25"><font color="#FF0000">*</font>新闻类别:</td>
<td colspan="2"> <select name="BigClassName" onChange="changelocation(document.myform.BigClassName.options[document.myform.BigClassName.selectedIndex].value)" size="1">
<option selected value="关注产品">关注产品</option>

<option value="新闻资讯">新闻资讯</option>

<option value="公司新闻">公司新闻</option>

<option value="业内资讯">业内资讯</option>

</select> <select name="SmallClassName">
<option value="" selected>不指定小类</option>

</select></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="25"><font color="#FF0000">*</font>新闻内容:</td>
<td colspan="2" valign="top"> <input type="hidden" name="content" value="">
<IFRAME ID="eWebEditor1" SRC="Sunly2007Editor/ewebeditor.asp?id=content&style=Sunly2007" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="450"></IFRAME>
</td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="25"><font color="#FF0000">*</font>发布人:</td>
<td colspan="2"> <input name="user" type="text" class="input" value="admin" size="30"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="25">首页图片新闻:</td>
<td colspan="2"> <input type="radio" name="ok" value="Yes">

<input name="ok" type="radio" value="No" checked>
否  <font color="#FF0000">(设为首页图片新闻,选择此项时请注意下行要上传图片!)</font></td>
</tr>
<tr>
<td height="25" align="center" bgcolor="#ECF5FF"><div align="left">首页图片:
<input name="IncludePic" type="hidden" id="IncludePic" value="yes">
</div></td>
<td width="210" align="center" bgcolor="#ECF5FF"><div align="left">
<input name="DefaultPicUrl" type="text" id="DefaultPicUrl2" size="30" maxlength="120">
</div></td>
<td width="547" align="center" bgcolor="#ECF5FF"><div align="left">
<iframe style="top:2px" ID="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=7" frameborder=0 scrolling=no width="300" height="25"></iframe>
</div></td>
</tr>
<tr>
<td height="25" align="center" bgcolor="#ECF5FF"><div align="left">录入时间:</div></td>
<td colspan="2" align="center" bgcolor="#ECF5FF"><div align="left">
<input name="AddDate" type="text" id="AddDate" value="2008-6-19 11:09:18" maxlength="50">
</div></td>
</tr>
<tr>
<td colspan="3" align="center" bgcolor="#ECF5FF"> <input type="submit" name="Submit" value="提交" class="input">
 
<input type="reset" name="Submit" value="重置" class="input"> </td>
</tr>
</form>
</table></td>
</tr>
</table>
<table width="100%" height="28" border="0" cellpadding="0" cellspacing="0" class="HeaderTdStyle">
<tr>
<td>
<table width="93%" height="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td align="right">Design By <a href="mailto:webmaster@wygk.cn">wygk.cn</a></td>

</tr>
</table></td>
</tr>
</table>
</body>
</html><style type="text/css">
<!--
.back_southidc {BACKGROUND-IMAGE:url('image/titlebg.gif');COLOR:000000;}
.table_southidc {BACKGROUND-COLOR: A4B6D7;}
.tit {font-size: 14px;
}
.tr_southidc {BACKGROUND-COLOR: ECF5FF;}
-->
</style>
<div align="center">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table_southidc">
<tr>
<td height="25" colspan="2" class="back_southidc"><div align="center"><span style="font-weight: bold">友情提示:禁止你Copy,想拷贝没门!</span></div></td>
</tr>
<tr class="tr_southidc">
<form method="post" action="Admin_DataBackup.asp?action=Backup">
<td width="733"><div align="left"><span class="tit"><span class="style6">注册《金企网络企业网站出售》 <br>
联系QQ:<span class="style11">3486638<a target=blank href= http://wpa.qq.com/msgrd?V=1&Uin=3486638&Site=金企网络企业网站客服&Menu=yes><img border="0" SRC= http://wpa.qq.com/pa?p=1:3486638:10 alt=""></a>67776635</span><FONT face=Verdana><a target=blank href= http://wpa.qq.com/msgrd?V=1&Uin=67776635&Site=金企网络客服热线&Menu=yes><img border="0" SRC= http://wpa.qq.com/pa?p=1:67776635:10 alt="金企网络客服热线"></a></FONT>806873328<FONT face=Verdana><a target=blank href= http://wpa.qq.com/msgrd?V=1&Uin=806873328&Site=金企网络客服热线&Menu=yes><img border="0" SRC= http://wpa.qq.com/pa?p=1:806873328:10 alt="金企网络客服热线"></a></FONT><FONT face=Verdana><br>
</FONT><span class="style11">电话:0467-2336799,15146769413,13104675114<br>
MSN:jxj7wl@126.com<br>
演示:<a href=" http://www.jxj7.com"> http://www.jxj7.com</a><br>
官方:<a href=" http://www.jxj7.com"> http://www.jxj7.com</a></span></span></span></div></td>
<td width="116"><div align="center"><a href=" http://www.jxj7.com"><img src="image/paymentsby_01.gif" alt="在线支付" width="127" height="62" border="0" /></a></div></td>
</form>
</tr>
</table>

</table>

</div>


请高手帮忙啊!

最佳答案
  • 五星知识达人网友:山河有幸埋战骨
  • 2021-04-24 05:03

好像没什么问题呢 你的把发出来看下

全部回答
  • 1楼网友:一把行者刀
  • 2021-04-24 05:51

news_save文件发来看看

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯