Dynamic PHP web pages question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hhisc383
Forum Newbie
Posts: 6
Joined: Wed Jan 17, 2007 11:53 am

Dynamic PHP web pages question

Post 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]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Take a look in Useful Posts.
Post Reply