Skip to main content
Inspiring
January 3, 2007
Answered

Insert Dynamic Preview of another Website

  • January 3, 2007
  • 2 replies
  • 308 views
Model Linux, Apache, MySQL, PHP

On a results page, is it possible to include an object that shows a preview of a website based on dynamic data?

In my database, the website fields only contain the data "www.********.****"

http://<?php echo $row_recorddetail['WEBSITE']; ?>

I know this expression can only be used to embed a link but how do I actually preview that URL as part of my page.

Is it also possible to re-size that object (like a snapshot preview)?

I'm not a brilliant coder but can use DW OK as an interface. What type of object do I need to insert?

Any help would be appreciated.
This topic has been closed for replies.
Correct answer RichardODreamweaver
Wow!! - thanks Gareth - now that I have played with this a bit, it is a really powerful bit of simple functionality.

Here's an example of using the postcode of a record to display their location in multimap and display it automatically at the base of the page (or wherever)...

<iframe width="100%", src=" http://www.multimap.com/map/browse.cgi?advanced=true&addr2=<?php echo $row_recorddetail['ADDRESS1']; ?>&addr3=<?php echo $row_recorddetail['CITY']; ?>&pc=<?php echo $row_recorddetail['POSTCODE']; ?>&scale=2000000"></iframe></font></td>

2 replies

RichardODreamweaverAuthorCorrect answer
Inspiring
January 3, 2007
Wow!! - thanks Gareth - now that I have played with this a bit, it is a really powerful bit of simple functionality.

Here's an example of using the postcode of a record to display their location in multimap and display it automatically at the base of the page (or wherever)...

<iframe width="100%", src=" http://www.multimap.com/map/browse.cgi?advanced=true&addr2=<?php echo $row_recorddetail['ADDRESS1']; ?>&addr3=<?php echo $row_recorddetail['CITY']; ?>&pc=<?php echo $row_recorddetail['POSTCODE']; ?>&scale=2000000"></iframe></font></td>
Inspiring
January 3, 2007
You could display the contents of the website in an IFrame. Do a search for
IFrames in google for more information.

--
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.