Thanks again.  I will try both ways if I can - using a static map and
using js.  If I succeed with both, then I can choose which way I
prefer to do it.

I had already found the script that Robby provided, but it didn't work
for me.  Perhaps I did not have it in the right place.  I will keep on
experimenting.  (And perhaps read up some more on js.)

I think I can make it work now.  Keep you fingers crossed (or whatever
it is that computer techies do) for me.  Thanks.

On Mar 19, 9:35 am, Robby Chen <[email protected]> wrote:
> It's quite easy to transfer variables from PHP to JavaScript.
>
> <script type="text/javascript" language="javascript">
>   var jsVariable = <?php echo $variable; ?>;
> </script>
>
> Hope this helps.
>
>
>
> On Fri, Mar 19, 2010 at 1:41 AM, wadori <[email protected]> wrote:
> > I am afraid I am still having trouble getting things straight.  I have
> > used the sample php code from
> >http://code.google.com/apis/maps/articles/phpsqlgeocode.html
> > to obtain the lat/long coordinates for an address using my php
> > script.  No problem there; I can then store the coordinates in a
> > database or do whatever I need to do with them.
>
> > Now I need to display a Google Map for the user to verify whether the
> > location is correct. I have looked at the “Pinpoint an address” page
> > that both Rossko and Andrew Leach referred  me to (http://
> > maps.huge.info/pinpointaddress.htm) to display a Google Map.  This
> > page uses javascript to create the map.  I am still not very familiar
> > with javascript, and do not know how to transfer variables between php
> > and js in order to use this map/technique.  Is it possible to create
> > and display a Google map using just php and/or html, or do I need to
> > learn how to communicate between js and php?
>
> > On Mar 2, 4:31 pm, Rossko <[email protected]> wrote:
> > > > I guess I don’t quite understand the distinction between static and
> > > > dynamic as it is used here.
>
> > > What they're trying to distinguish between is -
>
> > > "I have no idea what the address is until the user types it into some
> > > form."  Since that's going to be client-side, handling the geocoding
> > > client-side too would be smart.  That also allows a "did you mean? are
> > > you sure? would you like to move it a bit?" functionality, which
> > > sounds like what you need.
> > > Example -http://maps.huge.info/pinpointaddress.htm
>
> > > and
>
> > > "I have a collection of addresses already on my server e.g. database"
> > > Whilst it would be possible to send the address to a client upon every
> > > access to e.g. work out the nearest one, its obviously smarter to work
> > > through the database and geocode each address at the server ONCE and
> > > store the result.   Hence the provision of an HTTP geocoder too.  In
> > > your original post you talked about processing in php, which would
> > > otherwise require use of this, but if your data is going to be pre-
> > > processed at the point of entry before getting this far ... you won't
> > > need it.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps API" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-maps-api%2bunsubscr...@­googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to