Google iframe
2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 17, 2013 (RSS)
Just checking to see whether it's possible to include Google iframe on a page, specific to each listing.
For example, view http://www.fordland.com.au/details.php?50
The problem is that if I insert the iframe code (which I have inserted into <?php echo htmlencode($lease_warehouseRecord['google_map_new']) ?> ... it displays the full code, but no map. The only way I can get it to display as per the example is to hard code it in, however, I have different properties with different locations. Plus, I also need a SEPERATE aerial view (client request) with the same iframe functionality. Is this possible?
Thanks
By gregThomas - July 17, 2013
Hi,
The reason the code is being displayed and not decoded by the browser is because you're using the htmlencode function on $lease_warehouseRecord['google_map_new'], which coverts characters to there html safe equivalent. For example:
<a href='test'>Test</a>
would become:
<a href='test'>Test</a>
So you need to change your code to this:
<?php echo $lease_warehouseRecord['google_map_new']; ?>
Adding multiple iframes on a page shouldn't be an issue, so having to separate views should be possible
Thanks!
Greg
PHP Programmer - interactivetools.com