<?if($_POST["Submitshow"])
{
}
//你用这个试试,判断你是否点击提交按钮
?>

解决方案 »

  1.   

    看看这个帖子!
    http://topic.csdn.net/u/20081215/17/5f7c2e56-2dfe-4667-8ed4-b73b52985b88.html
      

  2.   

    // Report on the results: 
    if (mysqli_affected_rows($dbc) == 1) { 
    echo ' <p>The task has been added! </p>'; 
    } else { 
    echo ' <p>The task could not be added! </p>'; 

    echo "<script language='javascript'>window.location='xxxx.php';</script>";
    exit();

    } // End of submission IF
    在这块,重定向一下.
      

  3.   

    呵呵,常用session进行判断是否重复提交的