|
|
#1 |
|
Beta Member
Join Date: Feb 2009
Posts: 3
|
So i am trying to use this
<code> <?php if($_SESSION['id']) echo '<h1>Hello, '.$_SESSION['usr'].'! You are registered and logged in!</h1>'; else echo '<h1>Please, <a href="demo.php">login</a> and come back later!</h1>'; echo 'Should i find a new login' ?> <code> to make |
|
|
|
|
|
#2 |
|
Solid State Member
Join Date: Nov 2010
Posts: 18
|
Hi do any of you know a script for a horizontal drop down menu for java not java script.Big Thanks |
|
|
|
|
|
#3 |
|
Beta Member
Join Date: Feb 2009
Posts: 3
|
Please dont ask a question in a thread that has a completely unconnected question in it. make your own thread after searching the web.
|
|
|
|
|
|
#4 |
|
Site Team
Join Date: Mar 2004
Posts: 6,945
|
for the OP.
investigate the possibilities of using ob_start(); and session_start(); at the top of your script. this will enable you to put some session information into the headers to keep sessions on the browser, if you've already sent any content to the browser then you can't edit the headers later. PHP manual pages have quite a few examples on using these functions.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian… Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns. "The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries." |
|
|
|
|
|
#5 |
|
Beta Member
Join Date: Dec 2010
Posts: 2
|
<code>
<?php session_start(); if isset(!$_SESSION['id']) {echo 'not logged in';} else echo 'logged in and registered'; ?> <code> |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|