Say I wanted to include some php on a html page and I have the php code on a different page how do I add like an include to that page using html?
Such as <include="blah.php">
Please help, plus rep

Say I wanted to include some php on a html page and I have the php code on a different page how do I add like an include to that page using html?
Such as <include="blah.php">
Please help, plus rep
php only works on php pages... so pages like "test.php" not "test.html"![]()
<?php include("PAGENAME.php"); ?>
*Image Removed*
Thank you Brad for the sig
Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.
is there a HTML version of that code at all?
try this:
<!--#include FILE="b.inc" -->
no problem, i advise to use google next time
![]()
I did, but I didn't really know what I was looking for so I couldn't find it. SO I thought here was the next best thing to help me![]()
You could do an iFrame:
Or you can use PHP and put:HTML Code:<iframe name="iframe" src="page.html" width="WIDTH HERE" height="HEIGHT HERE" frameborder="0" scrolling="yes">Text here for browsers that can't see iFrames.</iframe>
Or, as said above:Code:<?php include("page.php") ?>
Code:<!--#include FILE="b.inc" -->
Last edited by ScottDiamond; 15-12-2006 at 05:09 PM.
Want to hide these adverts? Register an account for free!