hanyan_007
注册会员

UID 110552
精华
0
积分 62
帖子 38
金钱 62 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2008-2-18 来自 浙江
状态 离线
|
[广告]: q
m
编辑器上传内容失败
以前上传内容成功的,,但不知道为什么 前天就不行了 个人觉得代码都没问题啊。。很是抓狂
这是要上传的页面:
<form name="myform" action="test.php" method="post" onSubmit="return CheckForm();" target="_self">
<table width="80%" border="0" cellpadding="4" cellspacing="1" bgcolor="#0066CC" align="center">
<tr bgcolor="#0066CC">
<td width="150%"><font color="#ffffff"><b>文档上传</b></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="266">
<table width="580" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="130">请输入文章标题:</td>
<td width="100"><input name="title" type="text" id="title" style="width:200"></td>
</table>
<textarea name="content" id="content" style="display:none"></textarea>
<iframe ID="editor" src="editor.html" frameborder=1 scrolling=no width="600" height="400"></iframe>
<br/>
<input type="submit" name="submit" value="提交" style="background-color:#0066cc;border:1px">
</form>
这是处理页面 test.php
<?php
require('../../config/inc.php');
$title=$_POST['title'];
$info=$_POST['content'];
$time=date("Y-m-d H:i:s");
$conn=mysql_connect($dbhost,$dbuser,$dbpwd); //打开MySQL服务器连接
mysql_select_db($db_name);
mysql_query("set names GB2312");
$a="insert into wendang (title,info,firsttime) values ('$title','$info','$time')";
$result=mysql_query($a);
mysql_close();
header("location:guanli.php");
?>
望高手看下 有什么问题没。。
|
|