Welcome Guest ( Log In | Register)



2 Pages V  < 1 2  
Reply to this topicStart new topic
> Login Script
mwbouwkamp
post 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

Notice from BuffaloHELP:
Use the proper bbcode and do not sign off with every post. We all can see who made the reply.
Go to the top of the page
 
+Quote Post
dedesigns
post 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

Notice from BuffaloHELP:
Use the proper bbcode and refrain from signing off with every post you make.
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php Quiz Script(25)
  2. Many Php Script Sites(16)
  3. Script: Php Jukebox(6)
  4. Web Surfing- Script Needed(3)
  5. Simple Login In Visual Basic 6(7)
  6. File Upload Script In Java(5)
  7. Transfer Variables To Another Php Script(9)
  8. Trap17 Link Exchange Script Introduced(28)
  9. Automatic Login Using Curl(6)
  10. Make Your Own File Uploading Service.(39)
  11. Innovative Login System(20)
  12. Jsp Or Java Chat Script Like Mig33(5)
  13. Very Simple Online Now Script(4)
  14. Lottery Script Help(5)
  15. Simple Php Login And Registration System(16)
  1. Any1 Here Ever Made There Own Starcraft/diablo/warcraft Bot?(2)
  2. Download Script(5)
  3. Phpizabi Social Network Script(2)
  4. Creating A Php Login System Using Mysql(10)
  5. [request] Avatar For Trap17 Users(4)
  6. Java Script To Hide The Url In Address Bar(6)
  7. Need Help With Javascript Drag And Drop Script(2)
  8. Resolving Can't Login To Sqlexpress Using Sa Account(0)
  9. Php Code For Login Form With Validation In Php(6)
  10. What Is The Basic Diiference In Java Script And Vbscript(0)
  11. Windows Vista: Disabling Login Screen(5)
  12. Free Php Login Script! (includes Register, Login, Logout Forms And Includes Captcha).(15)
  13. Remove Traces Of Login From A Computer ?(3)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 03:38 PM