huisjames Posted November 29, 2010 Share Posted November 29, 2010 Hi, How do I generate a Google Map from user registration form? For example, user enters username, password, and address. I want to show the username, address + corresponding map on following confirmation page. I have already used static API to render the map as an image, but this is hard-coded. I don't know how to pass the address into the address param. Any help would be much appreciated. Thanks! Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted November 29, 2010 Share Posted November 29, 2010 are you familiar with forms and getting the user input from the form? if not, here are good google results with tutorials: http://www.google.com/search?client=safari&rls=en&q=php+forms+tutorial&ie=UTF-8&oe=UTF-8 Once you are able to get the data from the form, you just need to replace the address in the Google Maps API Javascript with html encoded address data, for instance: // With the google maps Javascript var address_param = '<?php echo urlencode($address); ?>'; // etc., etc., javascript code Quote Link to comment Share on other sites More sharing options...
huisjames Posted November 30, 2010 Author Share Posted November 30, 2010 Thanks to you BlueSky. I figured it out. Resolved. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.