|
|
|
|
![]() ![]() |
Sep 23 2006, 10:16 AM
Post
#11
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 22 Joined: 18-September 06 Member No.: 30,189 |
Just for "fun" I switched on the warnings and I got the following warning:
QUOTE Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\program files\easyphp1-8\www\chembase\login.php:7) in c:\program files\easyphp1-8\www\chembase\login.php on line 8 Even if I move the "session_start()" to the top of the page and it is the first php command (you can see from the warning that it is on line 8), I still get this warning. ~M |
|
|
|
Oct 2 2006, 05:50 AM
Post
#12
|
|
|
Newbie ![]() Group: Members Posts: 9 Joined: 28-September 06 Member No.: 30,720 |
try something like this..
CODE <? session_start(); if (isset($_SESSION['loginname'])) { you are already logged in } else if ($_POST[submit]) { check if the password and username are valid and if so, you are logged in } else { print the form to login } ?> Hope this work.. if not then message me again.. dedesigns |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 03:38 PM |