Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP mysql Login Tutorial By MAcar V1.0
#4
session_start(); must be called before any other output in your script (print, echo, header)
According to the error you are calling session_start() on line 4 but you also have an somthing on line 3 you should swich those two, that should help you with session_start() Warning

in login.func.php at the bottom is the header functions wich redirects you to loginerror.php
you can change that to what ever you want to be redirected to on login error
Wich occurs when you input wrong values and the specified user can not be found in the database
PHP Code:
header("location:loginerror.php");//this iswhere you put the page you want to goto if their login is wrong 
Reply


Messages In This Thread
PHP mysql Login Tutorial By MAcar V1.0 - by MAcar - 10-07-2009, 04:41 PM
RE: PHP mysql Login Tutorial By MAcar V1.0 - by Gaijin - 10-08-2009, 12:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 953 07-27-2020, 11:26 PM
Last Post: tk-hassan
  [PHP] Very Basic Login Page BreShiE 17 8,000 07-11-2013, 05:57 AM
Last Post: 1n9i9c7om ツ
  [help] Improve login script Montana" 1 1,749 03-18-2013, 12:59 PM
Last Post: Haxalot
  Don't need to login Strafeness 5 2,062 01-21-2012, 08:28 AM
Last Post: AceInfinity
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,689 10-10-2011, 01:00 PM
Last Post: Greyersting

Forum Jump:


Users browsing this thread: 1 Guest(s)