代码如下:问题出在点击提交按钮后它不能跳转到manage页面以及数据不能插入数据库activity_manage.php
<?php
require_once"../../class/connect_database.php";
require_once "../../class/paging.php";
require_once '../../class/session.php';$sql="SELECT * FROM activity  ORDER BY activity_id";
$data=array('sql'=>$sql,'pagesize'=>10,'page_name'=>'dis_manage');
$page=new paging($data);
$row=$page->result();
require_once '../header.php';?><script language="javascript">
var result1 = false;
var result2 = false;
function checkTitle(obj) {
if (obj.value=="") {
document.getElementById("tipTitle").innerHTML = '<span class="input-notification error png_bg">输入内容不为空!</span>';
} else {
var str = obj.value.replace(/(^\s*)|(\s*$)/g, '');
if (str.length==0) {
document.getElementById("tipTitle").innerHTML = '<span class="input-notification error png_bg">输入内容必须合法!</span>';
} else {
document.getElementById("tipTitle").innerHTML ='<span class="input-notification success png_bg">正确!</span> ';
result1=true;
}
}
}function checkImage(obj) {
 if(!/\.jpg$/i.test(obj.value)) {
 document.getElementById("tipImage").innerHTML = '<span class="input-notification error png_bg">图片必须为.jpg格式!</span>';
 } else {
  document.getElementById("tipImage").innerHTML = '<span class="input-notification success png_bg">正确!</span> ';
  result2=true;
 }
}
function getResult() {
//var title = checkTitle('');
// var image = checkImage(document.form_news.photo);
//var content = checkContent(document.form_news.content);
return result1&&result2;
}</script><div id="main-content"> <!-- Main Content Section with everything -->
<!-- Page Head -->
<h2 class="STYLE4">欢迎你!<?php echo $name; ?><a href="/xsgz/login/logout.php">,登出</a></h2>
<div class="clear"></div> 
<!-- End .clear -->
<div class="content-box"><!-- Start Content Box -->
<div class="content-box-header">
<h3>活动图片管理</h3>
<ul class="content-box-tabs">
<li><a href="#tab1" class="default-tab">图片管理</a></li> <!-- href must be unique and match the id of target div -->
<li><a href="#tab2">添加活动</a></li>
</ul>
<div class="clear"></div>
</div> <!-- End .content-box-header -->
<div class="content-box-content">
<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
<table>
<thead>
<tr>
<th>ID</th>
<th>标题</th>

<th>操作</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="6">
<div class="bulk-actions align-left">
</div>
<div class="pagination">
<a href="<?php echo $page->first_page(); ?>" title="First Page">&laquo; 首页</a>
                <a href="<?php echo $page->up_page(); ?>" title="Previous Page">&laquo; 前一页</a>
                <?php
for($a=$page->now_page()-2;$a<=$page->now_page()+2;$a++)
{
if($a>0&&$a<=$page->total_page())
{
if($a==$page->now_page())
{
echo '<a href="'.$page->get_page($a).'" class="number current" title="'.$a.'">'.$a.'</a>';
}
else
echo '<a href="'.$page->get_page($a).'" class="number" title="'.$a.'">'.$a.'</a>';
}
}
?>
<a href="<?php echo $page->down_page(); ?>" title="Next Page">下一页 &raquo;</a>
                <a href="<?php echo $page->last_page(); ?>" title="Last Page">尾页 &raquo;</a>
</div> <!-- End .pagination -->
<div class="clear"></div>
</td>
</tr>
</tfoot>
<tbody>
  <?php
$a=0;
while($a<$page->page_rows())
{
echo '<tr><td>'.$row[$a]['activity_id'].'</td>';
echo '<td>'.$row[$a]['title'].'</td>';
echo '<td>

<a href="activity_delete.php?activity_id='.$row[$a]['activity_id'].'" title="Delete">
<img src="/xsgz/admin/resources/images/icons/cross.png" alt="Delete" /></a> 
<a href="activity_view.php?activity_id='.$row[$a]['activity_id'].'" title="check">
<img src="/xsgz/admin/resources/images/icons/hammer_screwdriver.gif" alt="Edit Meta" /></a>
  </td></tr>';
$a++;
}
unset($page);
?>
</tbody>
</table>
</div> <!-- End #tab1 -->
     <div class="tab-content" id="tab2">

<form action="activity_publish_process.php" method="post" enctype="multipart/form-data" onsubmit="return getResult()" >
<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
                 
<p>
<label>活动名称</label>
<input class="text-input small-input" type="text" id="small-input" name="title" onBlur="checkTitle(this)"/> 
                  <span id="tipTitle">
                    </span>
                  <!-- Classes for input-notification: success, error, information, attention -->
<br />
</p>
               <p>
<input class="button" type="submit" value="提交" />
</p>
</fieldset>
<div class="clear"></div><!-- End .clear -->

               


</div> <!-- End #tab2 -->     
</div> <!-- End .content-box-content -->
</div> <!-- End .content-box -->
<?php
require_once '../footer.php';
?>activity_publish_process<?php
//session_start();
require_once "../../class/connect_database.php";
$title=$_POST['title'];
 $sql="INSERT INTO activity (activity_id,title)
   values(NULL,'$title')";  mysql_query($sql,$con);
header('location:activity_manage.php');
?>