Hi there,
(sorry if posted in wrong topic ive been awake for 18 hours lookin into this problem and others which i have now fixed but this one i cant figure out.)
Basicly i am trying to get:
<div class="content_header_01">
<?php
echo "Welcome " ;$_SESSION['first_name'];
?>
</div>
to work,
<full page here>
<?php
session_start();
if(!session_is_registered($first_name)){
header("location:members_area.html");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Kamikazi-Studio</title>
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="templatemo_container">
<div id="templatemo_top_panel">
<div id="top_panel_ls">
<div id="templatemo_site_title">Kamikazi-Studio</div>
</div>
<div id="top_panel_rs">
<div id="search_section">
<form action="#" method="get">
<input type="text" name="q" size="10" id="searchfield" title="searchfield" />
<input type="submit" name="Search" value="Search" alt="Search" id="searchbutton" title="Search" />
</form>
<div class="cleaner"></div>
</div>
<div id="templatemo_menu">
<ul>
<li><a href="index.html" class="current">Home</a></li>
<li></li>
<li><a href="#"><span></span>Albums</a></li>
<li><a href="register.html"><span></span>Register</a></li>
<li></li>
</ul>
<div class="cleaner"></div>
</div> <!-- end of menu -->
<div class="cleaner"></div>
</div>
</div> <!-- end of top _panel -->
<div id="templatemo_banner">
<div id="banner_header_01">Members Area</div>
<div id="banner_header_02">Just for you</div>
<div id="banner_text">
<p>Update your personal details, passwords or even just view your comments you have made recently here.<br />
</p>
<div class="rc_btn_01"></div>
</div>
</div> <!-- end of banner -->
<div id="ct"></div>
<div id="templatemo_content">
<div id="content_left">
<div class="content_left_280_section margin_right_40">
<div class="content_header_01">
<?php
echo "Welcome ";$_SESSION['first_name'];
?>
</div>
<p align="justify">Welcome, you have 0 Photos in your gallery<strong> click here </strong>to upload one.</p>
<p align="justify"> </p>
<p align="justify">When you have uploaded some photos you can have one as your image for your member page. This will also be the album cover which other members will see first. </p>
<p align="justify"> </p>
<p align="justify">Please remember that nudity or racist images are banned from this site, any use of such images will result in your account bieng banned from this site as well.</p>
<p align="justify"> </p>
<p align="justify"> </p>
<p align="justify"> </p>
<p align="justify"> </p>
<p align="justify"> </p>
<p align="justify"><br />
</p>
<div class="cleaner"></div>
<div class="rc_btn_01"></div>
<div class="cleaner"></div>
</div>
<div class="content_left_280_section margin_right_40">
<div class="content_header_01">Your most recent comments</div>
<p align="justify"> </p>
<p align="justify">comment</p>
<p align="justify"> </p>
<hr />
<p align="justify"> </p>
<p align="justify">comment</p>
<p align="justify"> </p>
<hr />
<p align="justify"> </p>
<p align="justify">comment</p>
<p align="justify"> </p>
<p align="justify"> </p>
<p align="justify"> </p>
<p align="justify"> </p>
<p align="justify"> </p>
<p align="justify"> </p>
<p align="justify"><br />
</p>
<div class="cleaner"></div>
<div class="rc_btn_01"></div>
<div class="cleaner"></div>
</div>
</div>
<!-- end of content left -->
<div id="content_right"><!-- end of news section -->
<div class="content_right_section">
<p>Change your Password<br />
Request a new Username</p>
<p>Change your Email Address</p>
<p><a href="logout.php">Logout</a></p>
<hr />
<p>Your Comments (New Feature)</p>
<p>Your Album </p>
<hr />
<p>Support</p>
<p>Contact Us</p>
<p>Rules of this site</p>
<p> </p>
<form action="#" method="get">
</form>
<div class="cleaner"></div>
</div>
<div class="margin_bottom_20 border_bottom"></div>
<div class="margin_bottom_20"></div>
<div class="content_right_section"></div>
<div class="cleaner_h30"> </div>
</div> <!-- end of content right -->
<div class="cleaner"></div>
</div> <!-- end of content -->
<div id="cb"></div>
<div id="templatemo_footer">
Copyright © 2013 <a href="#">INSERT COPYRIGHT HERE</a></div> <!-- end of footer -->
</div> <!-- end of container -->
</body>
</html>
and i cant get it to respond however sesion id responds to me when i print_r.
if anyone can have a look into why this might not be taken into account i would greatly appreciate it.
Thank you.