Link Details

Link 279759 thumbnail
User 206746 avatar

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.
  • 9
  • 0
  • 724
  • 160

Comments

Add your comment
User 273842 avatar

ernani replied ago:

0 votes Vote down Vote up Reply

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.

User 201211 avatar

Olaf Lederer replied ago:

0 votes Vote down Vote up Reply

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

User 206746 avatar

mlemos replied ago:

0 votes Vote down Vote up Reply

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".

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)