> 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