Part of the ‘Register & Login’ Project from PHP Academy. This tutorials walks you through how to process a username and password based login against details found in a database, set a session, and process a logout function.
Part of the ‘Register & Login’ Project from PHP Academy. This tutorials walks you through how to process a username and password based login against details found in a database, set a session, and process a logout function.
@HakuTheUmbreon WOW…I can’t believe I said that…yeah your right, I have know idea why i said management. (Derp)
@studioslime Actually it’s HyperText Markup Language
@text2121 Well if you want the literal definition HTML stands for…hypertext management language.
@text2121 for making websites and stuff, like, layout of a page and adding images and all that
99 most useful codecanyon premium script for webdeveloper: youtube.com/watch?v=1bMbJww_A3g
Thumbs up if you like it.
@isam919 I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);
@McbainGames I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);
@Martinsvk11 I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);
@aReason4music I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);
@Zaila1337 I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);
@keepr0ck Make sure you have the text input name the same as
$username = $_POST['TEXTBOX NAME'];
$password = $_POST['TEXTBOX NAME'];
Remember its case sensitive.
I get this after i click the button log in
Notice: Undefined index: username in C:xampphtdocssitealogin.php on line 2
Notice: Undefined index: password in C:xampphtdocssitealogin.php on line 3
Please Enter a username and a password
i have defined username and password
@keepr0ck
$username = “”;
if(isset($_POST['username']))
$username = $_POST['username'];
try something like that
Parse error: syntax error, unexpected T_STRING in C:xampphtdocsProjectlogin.php on line 10
my line 10 is “mysql_select_db(“phplogin”) or die(“couldnt find db”);”
cool tutorial
i hope i get good at this
Couldn’t find db
@keepr0ck You need to define the $username and $password variables first.
i think OR DIE function dosent work anymore ?
@text2121 hyper text markup language
@sith4life It is .php though
Do you have any other suggestions? Thanks
@smokenfly514 gotta make sure the filetype is .php, the easiest way to check this is to look and see if the page says localhost/login.php.txt or something like that
@keepr0ck seems like you may have forgotten the name=”username” and name=”password” in the index.php file or the name is not spelled the same (it is case sensitive)
My PHP files open as plain text. Can anyone help me with this? Thanks
the main mistake most tutorial given they just guide us for writing coding only without showing the software setting and we are the beginner headache to find the error or compare the source code while unable to running the program … PLEASE TAKE NOT ON THIS ISSUES FOR WHO WANT TO GIVE TUTORIAL .. but very appreciate for tutorial given….
what i’m facing here problem with database connection and find out that i didn’t thick allow url include from PHP setting… GOOD tutorial.. thanks ya