I am sending an AJAX request and want to send the data of the URL variable with it. I have tried using PHP's GET, however it is not sent.
$.ajax({
type: "POST",
url: "send.php",
data: "name=" + "<?php $_GET['name']; ?>",
success: function(data) {
$("#div").html(data);
}
})