runnerjp Posted March 4, 2007 Share Posted March 4, 2007 hey guys, ok i have my main layout set up and the area that i want to use the the changeing document i have used a content tag as so... <? if (file_exists($content)) { include($content); } else {?><?echo $content;?> so on my main page i have set it up so that it displays this align="left" valign="top"><h1 align="left"><img src="../images/runner.jpg" alt="runner" width="127" height="155" align="left"/></h1> <h1 align="center"> Welcome Back To RunnersElite!</h1> <center> <? include("include/adminerr.inc.php"); if($auth[error]) { include("include/messages/index_unverified.inc.php"); } else { include("include/messages/index_verified.inc.php"); } ?></center> <a href="../register.php"><img align="left" src="../images/bemem.gif" alt="signup" width="280" height="250" border="0" /></a> so as you see i have set the text to change depending if the user signs in or out what i want to do now is get rid of the pictures and the sign up stuff on the page if a user signs in... would i have to assign everything on the page with what if statement or could iasign it so that if a user is not logged in it shows one page as the index but if they are logged in it shows anouther index?? also how would i do either of these?? ty Link to comment https://forums.phpfreaks.com/topic/41117-i-think-a-what-if-statement-is-need-but-not-sure/ Share on other sites More sharing options...
chrisuk Posted March 4, 2007 Share Posted March 4, 2007 could you not just show the page for non-signed in users as default, then when a user signs in, redirect them? Link to comment https://forums.phpfreaks.com/topic/41117-i-think-a-what-if-statement-is-need-but-not-sure/#findComment-199157 Share on other sites More sharing options...
runnerjp Posted March 4, 2007 Author Share Posted March 4, 2007 but im useing context as my main part where the stuff go and doesnt useing index make everything more reliable ? Link to comment https://forums.phpfreaks.com/topic/41117-i-think-a-what-if-statement-is-need-but-not-sure/#findComment-199158 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.