added an AJAX method to the js and changed the request methods to GET in the PHP. AJAX is being a pain at the moment