Hey All, I am currently running a working script with php and jQuery, there is only one issue. When I try to pass the parameter "query" through it is not being captured. Here is my jQuery: jQuery.ajax({ type: "GET", url: '/zipcodesearch', data: "query = '07030'", async: false, beforeSend: function(x) { if(x && x.overrideMimeType) { x.overrideMimeType("application/j-son;charset=UTF-8"); } }, dataType: "json", success: function(data){ Code (markup): The function is calling success, just not passing this variable through. I have also tried sending it in JSON format as well, no luck The PHP is very simple, just a db collection... $data = $_GET['data']; $sql = "SELECT id, zip, city, state FROM postal_codes WHERE zip = '".$data."'"; Code (markup): I know it has to be simple, if someone could please look thanks!
No luck... I'm seeing query=07030 on the url when it is being called, but for the life of me... I can't understand why it is not being set!