pulchritude
03-02-2003, 12:30 AM
I know it can be done with CSS by using:
<LINK REL=stylesheet TYPE="text/css" HREF="whatever... etc etc
But is there a way to call up HTML from another file? Using HTML? Do I even make sense?
Thanks. ^_^
starlet
03-02-2003, 12:57 AM
SSI maybe?
http://www.lissaexplains.com/html6.shtml#SSI
pulchritude
03-02-2003, 05:14 AM
Yes, I think that that is what I'm looking for, only not in SSI.... Just... regular HTML.
I doubt this is possible, but thanks anyway. ^_^
pulchritude
03-02-2003, 05:16 AM
Actually, all my pages end in .phtml
Could I use SSI? If not, what can I use if they end in .phtml?
kittycat
03-02-2003, 05:33 AM
I'm almost positive that's a php file ending, so you could use the php include function.
<?php include('file.html'); ?>
You could always change your files so that you could use SSI though, unless the host doesn't support it.
pulchritude
03-02-2003, 02:56 PM
And I just put that line of code on my HTML page where I want that .html file to be included?
gendem
03-02-2003, 04:34 PM
Make sure it's a PHP file efore you do this. Then, yes, insert that linek where you want the info to show up. I'm not sure about php includes, but I know is SSI you have to strip out stuff like <head> and <body>. My SSI pages were just chunks of HTML.
pulchritude
03-02-2003, 06:18 PM
Hrm, no, that didn't work.
Here is what I'm specifically trying to do:
My userlookup for a site I belong to only allows a 600 character description, but it allows HTML.
The chunk of HTML I want to use is too long, but I figured maybe I could import it from another page, yes?
The PHP doesn't work because the page my lookup is on already has all the body and head tags. :\
Is there another way to do this? Can I use javascript, mayhaps?