喜悦国际村 
» 游客:  注册 | 登录 | 搜索 | 统计 | 帮助

RSS 订阅当前论坛  

喜悦证交所已经关闭

上一主题 下一主题
     
标题: [问题] 编辑器上传内容失败  
 
hanyan_007
注册会员
Rank: 2



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");
?>

望高手看下  有什么问题没。。
2008-5-3 05:32 PM#1
查看资料  发短消息  QQ  顶部
     


  可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题 | 开通个人空间  


 




Powered by Discuz! 6.1.0  © 2001-2010 Comsenz Inc.
Processed in 0.023618 second(s), 6 queries

(冀ICP备05009913号) 管理员:sadly 邮箱/MSN: sadly@phpx.com QQ:824008(长隐) 清除 Cookies - - Archiver - WAP