Jump to content

i think a "what if" statement is need but not sure


runnerjp

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.