Here is the error I get when I use the include below: include "MainMenu.php"; Fatal error: Cannot redeclare class db in /tmp/disk/home/webmaster/Files/WWW/pearDB/DB.php on line 211 // Larry -----Original Message----- From: Benjamin [mailto:benjamin@xxxxxxxxxxxxxxxxxxxx] Sent: Saturday, March 13, 2004 9:14 PM To: php-db@xxxxxxxxxxxxx Subject: Re: How to redirect after a valid login What kind of error does it give you? Because in the snippet you gave us you wrote > include "mainmenu.php"; // Which gives me an error ! And that should give you an error because it should be include( "mainmenu.php" ); //note parenthesies I have done what you want to do before like so if( $logged_in ) include( "logged_in_script.php" ); else include( "logged_in_failed.php" ); So what error do you get? Goodluck, Benjamin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php