Your help would be most appreciated. I'm dong this jquery ajax GET right. Although it submits and sends as a $_GET and is processed fine by process.php for some reason it is not reflected in the url.
jQuery('#results-submit').click(function() {
jQuery('#waiting').show(0);
jQuery('#container').hide(0);
jQuery('div.carpark').remove();
jQuery.ajax({
type : 'GET',
url : 'process.php',
dataType : 'json',
data: {
airport : jQuery('#airport').val(),
name : jQuery('#name').val(),
email : jQuery('#email').val(),
date : jQuery('#date').val(),
add2 : jQuery('#add2').val()
},
success : function(data){
jQuery('#container').show(0);
jQuery('#container').removeClass().addClass((data.error === true) ? 'error' : 'success').replaceWith(data.result).show(500);
if (data.error === true)
jQuery('#results_form').show(500);
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
jQuery('#waiting').hide(500);
jQuery('#container').removeClass().addClass('error').text('Please fill out all the required fields.').show(500);
jQuery('#results_form').show(500);
}
});
return false;
});