Jump to content

Archived

This topic is now archived and is closed to further replies.

Adamw2006

Simple php beginner question?

Recommended Posts

Hello all, i am new to php and i was just wondering how i create page ids. For example i am wanting to know how to make the 'index.php?id=home' 'index.php?id=contact' sorta pages/sections?

I just can't find anywhere that tells me how to do this. I know it's probably VERY easy, but like i said i am new to this.

Thanks!
Adam.

Share this post


Link to post
Share on other sites
Somethng like this

[code]switch ($_GET['page'])
{

case "conact":
include('contact.php');
break;
     
case "news":
include('news.php');
break;

default:
include('home.php');
}[/code]

where home.php is the main content on the index page

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.