我利用这一职能:
function end_incident() {
var dataString = name=Daniel&phone=01234123456 ;
$.ajax({
type: "POST",
url: "http://www.example.co.uk/erc/end_incident.php",
data: dataString,
success: function(msg){
alert( Success! +dataString);
}
});
};
将信息发送到<代码>end_incident.php,但Im无法查阅$_POST
的变量。 我试图这样做:
$name = $_POST[ name ];
$phone = $_POST[ phone ];
我做了一些错误?
Thanks for any help