views:

29

answers:

1

this dont work any options please?

"Result below if printed"

http://maps.google.com/maps/api/staticmap?center=WYOMING,WYOMING,MI&zoom=14&size=500x500&maptype=roadmap&markers=color:blue|label:S|42.902160,-85.696708&sensor=false

need to replace parts of url like shown above to enter "result" into an iframe src= ????

test page= findmeaload.com/ZipFind/frame.php

A: 

For one, that's a hideous blob of text to look at. Why bother with the various echoes, when print with double-quotes is perfectly capable of doing the variable insertion itself?

print("http://maps.google.com/maps/etc....?center={$City},{$City},{$State}&zoom=etc....");

And hitting your test page spits out the following URL near the top:

http://maps.google.com/maps/api/staticmap?center=,,&zoom=14&size=500x500&maptype=roadmap&markers=color:blue|label:S|,&sensor=false

notice the center=,,... there's no City or State there, so your $City and $State variables are empty/null. In your comment you use $city and $state - remember that PHP variable names are case sensitive, such that $City is something completely different from $city.

Marc B
yeah still in the works this is the second one i have made still have to go thro it thanks for that tho still looking how to get it in iframe so it loads the map
Morpheus Lucid