View Single Post
Old 07-13-2006   #10 (permalink)
BlackTie
BlacktTieDesigns.net
 
Join Date: Jun 2006
Location: United States
Posts: 3

Quote:
Originally Posted by scrowler
i think the first part of what you asked is already implemented in the tutorial, the second part is simply a matter of surrounding the element you wish to only appear if logged in with some php code:

Code:
<?php

if($_SESSION["s_username"]){

?>

<p>This will only appear if you are logged in!</p>

<?php } ?>
I tried this, but the only output I got was an epmty page.
http://blacktiedesigns.net/access/index.php
Just a testing page... I pasted the script you gave ^, and there still was an empty page on the output.
http://blacktiedesigns.net/access/accessindex.php (script I wanted shown):
This one includes a header.php/footer.php page to it. When I loaded it before there were continious output errors, like the one above

Code:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/..../public_html/Untitled-2.php:7) in /home/..../public_html/access/login.php on line 2
the login page
Thank you for the help in advance.
BlackTie is offline