我无法更新我的php会话
$.ajax({
type:'POST',
url: 'checkoutSession.php',
data: $('leveringsnavn').serialize(),
}).complete(function(data){
alert(data.responseText);
});
checkoutSession.php
<?php
session_start();
ECHO "<script> alert('HAHAHHAHHAHA1');</script>";
if (isset($_POST['fakturaNavn'])) {
ECHO "<script> alert('HAHAHHAHHAHA2');</script>";
$_SESSION['kundeOplysninger'][] = array("fakturaNavn" => $_POST['fakturaNavn']);
ECHO "<script> alert('HAHAHHAHHAHA3');</script>";
}
我带着hahahahaha1,警报框,但不是第二个或第三个......
有人可以帮我解决这个问题吗?