Trying to use a simple AJAX call, where I can pass a variable around and display in the modal. That side works, however I cant retrieve the variable from the GET.
The following echo var_dump($_GET);
->
array(2) { ["VALUE I WANT"]=> string(0) "" ["_"]=> string(13) "1431441301242" }
However, $TempName = $_GET['Name'];
returns no value?
AJAX:
$('#exampleModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget) // Button that triggered the modal
var recipient = button.data('whatever') // Extract info from data-* attributes
var modal = $(this);
var dataString = recipient;
$.ajax({
type: "GET",
url: "/getEventDetails.php/",
data: dataString,
cache: false,
success: function (data) {
console.log(data);
console.log(dataString);
console.log(recipient);
$('.dash').html(data);
},
error: function(err) {
console.log(err);
}
});
})