By mlemos
via phpclasses.org
Published: Nov 04 2009 / 06:46
The forms generation and validation class map location plug-in has been enhanced to help users locating an address or a city on Google Maps embedded in PHP generated Web forms. This article explains how the maps location plug-in uses the Google Maps Geo-Coding API to find locations entered by the users in Web forms.
Comments
ernani replied ago:
This can benefit a lot of web applications using PHP and the power of the embedded javascript inside of this tool. Very useful for some projects I've had the need to be fast and still provide code quality and reusable throughout the changes that evolved with it.
Olaf Lederer replied ago:
I don't see what is special in the tutorial, similar examples are available on the api site since the beginning, btw. the country "Netherland" is missing in your example form
mlemos replied ago:
This package integrates Google Maps API with PHP generated forms without making you write JavaScript by yourself. You just need to know PHP.
As explained in the article, the class generates HTML and Javascript to make the coordinates of the location picked by the user be passed to form inputs, thus making it easier to get the coordinates on the server side by PHP.
Netherlands is there but is listed as "The Netherlands". It was taken from a list of country names that originally had just "Netherlands". However, once a Dutch user complained that it should be "The Netherlands" and so it was changed. I don't know if is there any consense among Dutch people on whether it should "Netherlands" or "The Netherlands".
Voters For This Link (9)
Voters Against This Link (0)