Forums
This topic is locked
User Sign in
Posted 08 Oct 2006 15:17:15
1
has voted
08 Oct 2006 15:17:15 Simon Wilkinson posted:
Hello everyone,Although i have found a few posts from people with similar problems i cannot find anything quite the same.
I have created a user log in page, it works fine. Once the user has logged in they are then sent to a page which displays there info that has already been entered during the sign up process. The page also contains a few extra fields for them to fill in.
The problem i am having is that i cannot get the page to display the particular users info from the database.
I have tried using the session variable to get the username from the login screen.
I get this error :
Notice: Undefined variable: _SESSION in c:\program files\easyphp1-8\www\testtest\account.php on line 20
line 20 = <p>Hello, <?php echo $_SESSION['MM_Username']; ?></p>
I just cannot see where i hav gone wrong.
I have made the record set use the MM_Username session variable, and have obviously made a corresponding session variable called MM_Username.
Any help would be good.
Kind regards,
Simon W
Replies
Replied 08 Oct 2006 17:58:39
08 Oct 2006 17:58:39 Simon Wilkinson replied:
I found that i needed to add:
<?php session_start();?>
to the top of the account page.
I would have thought DW would have done this auto...
anyway all is working now...
<?php session_start();?>
to the top of the account page.
I would have thought DW would have done this auto...
anyway all is working now...