Customers.php
$("button[name='view']").click(function(){
var id = this.id;
document.getElementById("id01").style.display='block';
console.log(id);
$.ajax({
type: 'POST',
url: 'accountinformation.php',
data:{'id':id},
success: function(data){
}
});
});
我来到了accountinformation.php
$id = $_POST['id'];
echo $id;
我的问题是我无法获得它所说的未定义的ID