[thelist] Dynamic Title / Meta

Anthony Baratta anthony at baratta.com
Sat Jul 24 22:24:29 CDT 2010


 You are mixing data types in the switch statement.

php_self is the name of the file executing. No matter what your query string says it will always say index.php.

You need to check the query string "pId" in the switch statement.

This might work better:

if ($_GET['pId'] === "")
{
    /* default behaviour */
 } else {
    switch ($_GET['pId'])
    {
        case '0x01':
            /* page type #1 */
            break;
        default:
            /* default behaviour */
    }
}




More information about the thelist mailing list