Forum Moderators: phranque
I'm having some trouble finding out how to add a particular postcode search function on my website.
What I need is to have a very simple search box on my homepage where you type in your postcode and then on the next page have a message such as "Yes, we operate in <town of postcode>".
Basically, I need that message to come up whatever postcode is put in, but I DO need the town name (e.g. Oxford, Central London etc.) to come up in the header tag on the next page.
When I search for this I find lots of programs that offer to automatically fill in address details for shopping carts, but not for what I am specifically looking for.
During my search I found that a-quick-sale.co.uk has a very similar search function to what I am looking for.
Can anyone point me in the right direction as to scripts/programs that can do this and/or what I might need to do this?
Many thanks
Max
what I might need to do this?
At the minimum you need a list of towns and their postcode areas - or a subscription to a service to do the lookup for you.
You could grab the information from Wikipedia [en.wikipedia.org], add it to a simple database running on your server, then match the first part of the postcode entered against that list.