View Full Version : think i need a what if statement here but not sure

03-04-2007, 05:25 PM
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)) {
} 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> <?
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??

thank you