Basically I have been asked by our systems guy here for the sake of analytics to add the value from a search to the url string so we can track the keywords searched.
So i have the code below which works fine, but I dont know how to append the value of the input to the url string.
Currently you are using the POST method to submit the form data. If you want the data to be in the url, then you can use the GET method to submit the form data instead, and adjust your PHP script to retrieve the info accordingly.
There are other solutions - such as submit the form to an intermediary page via GET, which can then automatically redirect to a submit via POST while keeping the values in the URL.
Or, you can submit via POST and have the server-side script redirect to the same page with the values in the URL.
IMHO though the easiest solution is to submit via GET, from where you can then direct the information to where it needs to be.
It also benefits your users, as with the params in the URL they can bookmark a particular search and return to it later (or share it with someone else).
forgive me if this beyond the scope of this but thought it would be worth a mention.
ideally what you want is to use GET and then on the server have it change the URL to be www.yoursite.com/bristol or maybe www.yoursite.com/search/bristol
this makes it much easier for a user and still good for search engines