0

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){

        }
    });
});

and i got here the the accountinformation.php

$id = $_POST['id'];
echo $id;

my problem is i cant get the id it says its undefined

NeCat
  • 25
  • 1
  • 9

0 Answers0