html iframe?

Associate
Joined
16 Jan 2006
Posts
986
Location
North Wales
am using a Iframe in my site and i have this code

<iframe src="http://www.******.com/supportcentre/index.php" height="700" width="800" border="0"> </iframe>

for some reason i dont have a 0 border wahts *** command to make it so i dont have a border on it?
 
Spunkey said:
<!-- #INCLUDE FILE="filename.inc" -->
That's local content, not external content ;). Still entirely possible, just a little more tricky and dependent on server configuration e.g. allow_url_fopen enabled in PHP.
 
Spunkey said:
yes you can

<!-- #INCLUDE FILE="filename.inc" -->

job done.

*edit*
well, that works in ASP, should be some equivalent in PHP surely.

There is PHP include, but again, only works with local content.
 
The main issue with including external content directly within an HTML document, is the resulting malformed markup e.g.

Code:
<div>
   <?php include 'http://www.google.com'; ?>
</div>

=

Code:
<div>
  <html><head><meta http-equiv="content-type" content="text/html;   charset=UTF-8"><title>Google</title><style><!--
  body,td,a,p,.h{font-family:arial,sans-serif;}
  .q{color:#0000cc;}
  -->
  </style>
   ...
   ...
</div>
Making including a bit more tricky as you need to strip out the junk.
 
Back
Top Bottom