PHP Layout help. - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-22-2011, 08:14 AM   #1 (permalink)
Junior Member
 
Join Date: Mar 2011
Posts: 1
Post PHP Layout help.

Howdy!

I am a webmaster from way back, I used to make fun little websites for almost anything. I was never amazing, and I didn't really understand a lot of what I did. But one thing I did do was create layouts using PHP - essentially so that I could just have the layout of the page displayed on the index.php page, then have all content for different pages written on a seperate .html file. By clicking links on the website, it would reload the index.php page and display the new content in the designated area.

I did this many times, but I used to just rip off the code from the last website I made and never bothered to learn it.

So years later, I have come to make another website - but have completely lost all my previous website files.

So essentially here is what I have -

I make the layout using photoshop, it slices it up into tables for me so I have the different link images in tables, plus the area designated for the content in a table (also an image).

I just need the code for the content section, all the links will be "index.php?id=PAGE". The area for the content does not need to change in size as the content will be minimal. I just need the most simple code for reloading the page with new content.

I hope this makes sense - all help will be appreciated.

Thanks a lot!
nick777 is offline   Reply With Quote
Sponsored Links
Old 04-07-2011, 04:28 AM   #2 (permalink)
Junior Member
 
Join Date: Apr 2011
Posts: 2
Default Re: PHP Layout help.

Hi, first off I'd like to think I know my way around HTML pretty much. I don't really know a lot about programming languages about perl/cgi or PHP too much. Just starting to learn.

I'm trying to familiarize myself with the syntax and whatnot. I'm working on a simple website for a gaming community I belong to. I'm working on a profiles page with a lsit of members. Basically I have a template as profile.php. Is it possible to use the include function (calling to individual text files) and call each page as profile.php?user1, profile.php?user2 and so on....

Is that possible? How does that work?
alma111 is offline   Reply With Quote
Old 04-08-2011, 02:37 AM   #3 (permalink)
Regular User
 
Join Date: Apr 2011
Posts: 115
Thumbs up Re: PHP Layout help.

HMmmm.....

As far as i understood...do u need to reload the index page and load different contents(as per the request)?
If that is the case...this link might help

h t t p : / /student.elpistechnology.com/viewtopic.php?f=8&t=31

might help

Last edited by chunnilal; 04-08-2011 at 02:48 AM.
chunnilal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 04:38 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting