I have a search form containing both city and postcode fields. The search is queries a mysql database and returns relevant results.
To make things easier for the user is it possible to combine these two and allow either cities or postcodes to be entered into the field?
Thanks
Use is_numeric()
function (or regexp) to figure out which type of data you have in request (city name or postcode).