Jump to content

PHP variables into an iframe link...


asevie

Recommended Posts

I'm trying to take two php variables for lat/long ($lat and $long) and display a small iframe with the corresponding google map. I have this after a successful insert of the user submitted lat/long...

 

    echo "<iframe src=\"http://maps.google.com/?q=$lat,$long\" scrolling=\"yes\" frameborder=\"0\" width=\"300\" height=\"400\"></iframe>";

 

Any idea why this doesn't display after a user successfully submits a location?

Link to comment
https://forums.phpfreaks.com/topic/276276-php-variables-into-an-iframe-link/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.