<div id="wrapper">
<!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
<h1> </h1>
<!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet -->
<ul id="mainNav">
<li><a href="index.php" >文章管理首页</a></li> <!-- Use the "active" class for the active menu item -->
<li><a href="write.php">写新文章</a></li>
<li><a href="artical_list.php">文章列表</a></li>
<li><a href="#">更多>></a></li>
<li class="logout"><a href="#">退出</a></li>
</ul>
<!-- // #end mainNav -->
<div id="containerHolder">
<div id="container">
<!-- // #sidebar -->
<!-- h2 stays for breadcrumbs -->
<h2><a href="index.php">文章管理首页</a> » <a href="#" class="active">文章列表</a></h2>
<div id="main">
<h3>文章列表</h3>
这是一个PHP页面,上面显示的是文章的列表,就是标题和作者的页面
<?php
$id=$_GET['id'];
$link=@mysql_connect("localhost","root","root") or die ("数据库链接失败".mysql_error());
mysql_select_db("art",$link);
header("Content-type: text/html;charset=gb2312");
mysql_query("set names 'gb2312'");
$sql="select * from art_bse where id=".$id;
$row=mysql_fetch_array(mysql_query($sql));
?>
<form action="art_edit_chk.php?id=<?php echo $row['id'];?>" method="post" enctype="multipart/form-data" onSubmit="return act();" name="art">
<table width="100%" height="30" cellpadding="0" cellspacing="0">
<tr>
<td width="675" height="20" class="pp">文章标题:
<input type="text" name="art_nmt" value="<?php echo $row[1];?>" />
作者:
<input name="art_aut" type="text" id="art_aut" size="10" value="<?php echo $row[2];?>" />
<input type="hidden" name="art_dtc" value="<?php echo date("Y-m-d");?> "/>
</td>
<td width="173" align="left" class="action">
<h5>
<input type="submit" name="Submit" value="保存" />
<input type="reset" name="Submit2" value="取消" />
</h5> </td>
</tr>
<tr>
</table>
<div class="editor">
<?php
include_once("fckeditor/fckeditor.php");
$oFCKeditor=new fckeditor('art_cnn');
$oFCKeditor->BasePath='fckeditor/';
$oFCKeditor ->Valude = 'this is a default content';
$oFCKeditor->Width='850px';
$oFCKeditor->Height='500px';
$oFCKeditor->Create();
//$fck=$oFCKeditor->CreateHtml();
?>
</div>
</form>
这个上面是 从列表页面点击进入的页面,就是每个文章的显示页面
文章的 标题 和 作者都可以获取到,
但是内容获取不到!
怎么办?
我用的是 FCKeditor
前提:不要加 textarea
求救!!!!!
$art_nmt=$_POST['art_nmt'];
$art_aut=$_POST['art_aut'];
$art_dtc=$_POST['art_dtc'];
$art_cnn=$_POST['art_cnn'];审核的时候,获取不到 'art_cnn' 的值
这个是用fckeditor编辑器的
就是获取不到值!!!
咋办??
textarea ?还是什么??
生成的东西的name正确吗
fckeditor 的值就是获取不到,
NAME 没有错误~~~!
求解!!!
最后我在编辑的时候去掉了fck
换成了textarea it