Php dynamic page problem

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
yasirjamal
Forum Newbie
Posts: 8
Joined: Tue Feb 10, 2009 11:05 pm

Php dynamic page problem

Post by yasirjamal »

I am making dynamic php pages. I sucessfully made it. The problem is only . i have set my index page with my text and images when i click my next button the net page came upper side of my index page.which i dont want that. I want when i click my next button the information of 2 button came only no index page.
anyone tell me how to do it
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: Php dynamic page problem

Post by greyhoundcode »

8O
watson516
Forum Contributor
Posts: 198
Joined: Mon Mar 20, 2006 9:19 pm
Location: Hamilton, Ontario

Re: Php dynamic page problem

Post by watson516 »

Code?

Maybe use a switch statement?

Code: Select all

switch ($_GET['page'])
{
    case "contact":
        include("contact.php");
        break;
    default:    //display index
        include("index.php");
}
Post Reply