久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php無法傳輸form怎么辦

      php無法傳輸form怎么辦

      php無法傳輸form的值怎么辦?

      錯誤代碼;

      html頁代碼: <form action="show.php" target="mainFrame" method="post"> <input type="text" name="words" cols="200"/><input type="submit" value="發(fā)言"/> php頁代碼: <?php require_once('config.php'); ?><?phpmysql_select_db("data");$words=$_post['words'];if($words){$query="insert into chat(chtime,nick,words,face)values(now(),'$nick','$words','$face')";//插入SQL語句mysql_query($query,$link_ID); //發(fā)送留言到數(shù)據(jù)庫header("refresh:0; URL='show.php'"); } ?>

      解決辦法:

      php是區(qū)分大小寫的,用$_POST看看。

      另外一個,html部分,看不到form的結(jié)束符。

      <form method="post" action="show.php" enctype="application/x-www-form-urlencoded" name="form1" id="form1"> <input type="text" name="words" value="" /> <input type="submit" value="發(fā)言"/> </form> <?php mysql_select_db("data"); $words = $_POST["words"]; if($words){ $query="insert into chat(chtime,nick,words,face)values(now(),'$nick','$words','$face')";//插入SQL語句 mysql_query($query,$link_ID); //發(fā)送留言到數(shù)據(jù)庫 header("refresh:0; URL='show.php'"); } ?>

      照上面的完善一上,如果還不行,在mysql_select_db("data");前面加一個 print_r($_POST); 看能輸出什么數(shù)據(jù)。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號