Web Hosting Talk







View Full Version : Inline Frame


SteveIsName
06-03-2004, 11:58 PM
I have a page with an Inline Frame within it, Is it possible to dictate the address of the inline frame via the address bar?

Something like...
-w-w-w.website.c-o-m/page.html&framename="othersite.c-o-m"

Thanks

Dan Grossman
06-04-2004, 01:45 AM
The easiest way to do that would be to use PHP or some other server-side address, read the framename variable from the URL, and write the iframe's source with that.

-w-w-w.website.c-o-m/page.html&framename="othersite.c-o-m"

Instead of <iframe src="http://www.example.com" ...> you'd have
<iframe src="<? echo $_GET['framename']; ?>" ...>