Page 1 of 1

Php dynamic page problem

Posted: Sun Feb 22, 2009 8:01 am
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

Re: Php dynamic page problem

Posted: Sun Feb 22, 2009 10:45 am
by greyhoundcode
8O

Re: Php dynamic page problem

Posted: Sun Feb 22, 2009 11:26 am
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");
}