PHP] Is this a good way to create a dynamic webpage using PHP?
I'm not really a good web programmer and need your advice here :)
I'm trying to create a dynamic webpage using include() function in PHP.
This php page has the following codes - literally, that's all the file contains.     



    <?php
    session_start();
    $dbName = $_REQUEST['DBName'];
    $tbName = $_REQUEST['TBName'];
    $dbType = $_REQUEST['DBType'];

    include('header.php');
    switch($dbType)
    {
        case 'Calender':
            include('CalenderPage.php');
            exit;
        case 'News':
            include('NewsPage.php');
            exit;
        case 'Gallery':
            include('GalleryPage.php');
            exit;
    }
    include('footer.php');
    ?>


Do you think it's a good way of creating dynamic PHP page?
PHP] Is this a good way to create a dynamic webpage using PHP?
===

I'm not really a good web programmer and need your advice here :)
I'm trying to create a dynamic webpage using include() function in PHP.
This php page has the following codes - literally, that's all the file contains.     



    <?php
    session_start();
    $dbName = $_REQUEST['DBName'];
    $tbName = $_REQUEST['TBName'];
    $dbType = $_REQUEST['DBType'];

    include('header.php');
    switch($dbType)
    {
        case 'Calender':
            include('CalenderPage.php');
            exit;
        case 'News':
            include('NewsPage.php');
            exit;
        case 'Gallery':
            include('GalleryPage.php');
            exit;
    }
    include('footer.php');
    ?>


Do you think it's a good way of creating dynamic PHP page?