Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Code Inside Code Doesn't Work

$
0
0
Hi,

I have been using a code which displays different content depending whether I am logged in or not. However I am trying to add code but I just cant seem to get the code layout (there is a word for it) to work correctly.

The code below displays this:

" . $success["success"] . "
"; ?>
" method="post">

I have spent around 4 hours trying to get it to work but I cant get the code to sit inside the code which displays the content based on whether someone is logged in or not.

 
		 <?php
	     if ($_SESSION['userLoggedIn'])
{
  echo '
     logged in
  ';
} else { echo 
'

<div class="content-container1">
		<div class="content-container2">
	<div class="section-navigation">
			</div>
						<div class="content">	
			
			<div class="submitinfocell">


		<div class="updateerrorcell">
		 <?php if($success["success"]) print "<div class="valid">" . $success["success"] . "</div>"; ?> 
	</div>		
		</div>	
			
			<div class="submiteventarea">
	<div class="submiteventbox">
	
	<form class="form_id"  class="appnitro"  action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post"> 
			<ul >	 
	

Viewing all articles
Browse latest Browse all 13200

Trending Articles