I see many websites such as dating sites/car sites that let users search for something and lets them enter the number of miles within a certain city or zip code.

I tried googling on how this can be done in php but couldn't find any good source. Is this possible in php or is it ASP only?

Any info is appreciated, thanks.