This script will send an ajax request to a PHP script which will run a search based on the text in the search box.
The backend script will then echo a specially crafted text response, which we will parse in the clientside javascript.
This javascript will then show a <div> and fill its contents with the results.
Log: