Page 1 of 1

Dynamic PHP web pages question

Posted: Wed Jan 17, 2007 11:58 am
by hhisc383
Everah | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


on the index, I have the header, menu to the left, content to the right, and the footer. i just want the content section of the page to change with this:

Code: Select all

<?php
if ($_GET['go']=='aboutus') {
include 'aboutus.php';
}
?>
How can I do that? I tried to do it, but it would just put the page it was fetching above what was already in the content section of the index page. how can i make that content part change each time there is a new request?


Everah | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Wed Jan 17, 2007 12:34 pm
by feyd
Take a look in Useful Posts.