0
var_dump($_POST);
['content'] = string....
和echo $_POST['content']
顯示在瀏覽器中 正確的代碼,但在兩種情況下,源僅顯示通知
<br /><b>Notice</b>: Undefined index: content in<b>C:\wamp\www\php\prosessComment.php</b> on line <b>6</b><br /> array(0) {}
和顯然缺少的變量。我可以用它做各種各樣的事情,但是當我嘗試將它放入查詢中時,它就顯得空白。
第6行是什麼樣的?你能拼錯`$ _POST`,例如`$ POST ['content']` – Phil 2010-12-07 04:19:00
我也不明白。你的例子不清楚。請編輯。 – 2010-12-07 04:20:37