2015-01-15 27 views
1

PHP的拳頭部分:參數傳遞給一個NetBeans PHP是空

ID=0449&acctNum=2345671&mastername=xxx 

這些都是空的Xdebug的屏幕stopps時:

<?php 

    header('Content-type:application/json'); 
    include 'connectdb.php'; 

    $id = $_POST['ID']; 
    $accountNum = $_POST['acctNum']; 
    $mastername = $_POST['mastername']; 

值的NetBeans項目屬性,運行配置,參數進入在讀取值之後的斷點處。 以ID = 0449和0449的1個參數進行嘗試,但始終爲nul。

請幫忙。謝謝。

+0

謝謝。有效。我已經複製了以前工作的文件中的大部分代碼。不明白爲什麼。 – questar 2015-01-15 18:26:13

+0

寫了個答案! – Rizier123 2015-01-15 18:28:05

回答

0

您必須更改$_POST$_GET,這應該適合您!

因爲您設置的參數在$_GET陣列中