Suddenly I had an issue with a popup appearing in a browser saying 'Scanstyles does nothing in Webkit/Firefox/Opera' when viewing my website. The fix.
I recently had a problem that I had to convert an stdClass() object into a JSON data using php. The reason being that jQuery could only read the JSON.
WordPress was allowing empty searches to bring back results. Here is a revised version of a solution I found on the web. Hope it helps anyone.
Here is a basic example of passing form data to a PHP file via jQuery and then passing data back to jQuery from the PHP file via an ajax style script.