- Nov 13, 2000
- 14,166
- 0
- 0
Hi all,
This is my first step into creating a web page with PHP, and I've just got one little problem that I'd like to try to address
I've got the main page (main.php) which I'm trying to use to show all the other pages, so that any layout or design changes (that exist outside of CSS modifications) can be done without having to modify the content pages, they will be as plain as possible.
The biggest problem I'm having is trying to set the page Title dynamically for each individual content page. The only way I've been able to do this so far is to include the header from the relevent content page, but that isn't ideal as I can't just point a browser to /pages/page.php and get a content-only version of the page (like I've seen some other sites do).
I'm also helping out someone else at work with designing a similar site, after he saw my layout/design, but want to get these problems sorted out.
Attached is the current code, and modifications that could be made will be greatly appreciated
Thanks in advance
This is my first step into creating a web page with PHP, and I've just got one little problem that I'd like to try to address
I've got the main page (main.php) which I'm trying to use to show all the other pages, so that any layout or design changes (that exist outside of CSS modifications) can be done without having to modify the content pages, they will be as plain as possible.
The biggest problem I'm having is trying to set the page Title dynamically for each individual content page. The only way I've been able to do this so far is to include the header from the relevent content page, but that isn't ideal as I can't just point a browser to /pages/page.php and get a content-only version of the page (like I've seen some other sites do).
I'm also helping out someone else at work with designing a similar site, after he saw my layout/design, but want to get these problems sorted out.
Attached is the current code, and modifications that could be made will be greatly appreciated
Thanks in advance
