[solved] PHP Includes and HTML
Posted: Sat Apr 16, 2005 3:12 pm
I'm writing a site using HTML and I want to use PHP includes to generate the page content, so it changes when the user clicks on the menu links.
The menu is included in a CSS div (I've not copied all the code, just what I think is relevant) and when the user clicks a link I am using the $_GET to generate the new frame content.
Here's the include file for "faq.php" (I've tried calling it faq.html as well with no effect).
The above is HTML, I have tried removing the html tags with no effect.
At the moment, something very odd is happening, pleas help. If you want to take a look the URL is http://www.pit-stop.org/
Hope this makes sense and you can see what I'm trying to do! Is it possible?
feyd | Please review how to post code using
Code: Select all
<div class="menu">
<b>Home >></b>
<a href="?action=faq" style="text-decoration:none"> FAQ >></a>
</div>
<?php
if ($_GET['action'] == 'faq')
{
include("faq.php");
}
?>Here's the include file for "faq.php" (I've tried calling it faq.html as well with no effect).
Code: Select all
<html>
<body>
<div class="e;second"e;>
<p>This is me testing some php includes to build up the screens, the FAQ should be ready in the next week or so, in the meantime please visit the forums if you want to find out more or ask questions etc</p>
</div>At the moment, something very odd is happening, pleas help. If you want to take a look the URL is http://www.pit-stop.org/
Hope this makes sense and you can see what I'm trying to do! Is it possible?
feyd | Please review how to post code using
Code: Select all
andCode: Select all
tags. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]