[!--quoteo(post=366297:date=Apr 18 2006, 10:14 PM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Apr 18 2006, 10:14 PM) [snapback]366297[/snapback][/div][div class=\'quotemain\'][!--quotec--] I think the problem is here [code] if ( $sid2 = $auth['session'] ) { include_once ''. $file .''; }[/code] Where the $auth array is being defined/passed? The structure itself is OK I guess (a bit ugly IMO). [/quote] uhh... no. that isnt the problem.... and yes the code is sloppy i just wrote it... not really thinking about it.... anyway... like i said it works... i pull and check if the session id is a match if so... the page is included if not i want the form echo`d.... the else part dont work.... oh hmmm i think maybe i found where... [code] if ( $sid2 = $auth['session'] ) { include_once ''. $file .''; }[/code] instead [code] if ( $sid2 == $auth['session'] ) { include_once ''. $file .''; }[/code] ill go give it a try... =/