Hi thanks for the great tutorial, I have a problem though, when I enter my username and password it opens checklogin.php and displays it as brut text. I don't know why it does that.
thanks for this tutorial! its been such a great help! the only thing i cant get working is the logout, it goes to the logout page and all but the user can still press the back button and get back into the main page. Any ideas?
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\x\xampp\htdocs\checklogin.php on line 7
Access denied for user 'ODBC'@'localhost' (using password: NO)
hi, i would like to know,how to connect mySQL with my site,where is already Login form there. I created my site with webplusX4,can you help me ? thanks
REALLY EXCELLENT ALL THE VIDEOS!! Thank you very much rrphillips!! Only one thing pls:
** In login_success.php:
"session_is_registered" is deprecated now and we could get a warning message saying that. Solution: Use $_SESSION instead of "session_is_registered" . So, replace inside if( ):
You are good at explaining things and I have followed a couple of your other tutorials which after an initial issue of typo's I got working but for some reason this one seems to be quite a challenge, I have built the whole things using the page structure as you and when I understand the code more I will try to do the things you suggest towards then end but getting this working is not happening at the moment.
I don't know what i'm doing wrong. First of all i also got a blank page at the checklogin.php. Then i added <?php at the beginning, and then it worked. But when i logout, i still can access the login_success.php page without getting to the mainlogin page instead... Any ideas?
Hello...can you help me please... everytime when i click on login, i just come to checklogin.php, and i just see a white page and nothing else happend... ican't find the mistake!!!
thanks great nice but when i enter my username and password if i enter correct or incorrect it will just show me the cheklogin.php empty page it not redirect me if i enter correct id and pass to login_success.php if i enter the wrong also it not redirect me to the wrong username and password page plz help
wow nice. heck when I did visual basic i didnt understand the tutorials but when i did video tuts its been alot easier seems to be the same with php lol
Can u make a tutorial about how to make a registration form, that will be very useful, i think there is no point only having a login from, when u cant register, unless you wanna keep the website only for you, but thanks....
Thanks so much for this 10 out of 10 for the tutorial very clear and easy to follow and having the code on your site in easy steps is a bonus. Thanks again tried several tutorial before this and could not get them to work
i can't make it when i typed my passsword and username i came to " checklogin.php " and don't got the "Wrong Username or Password " if i type the wrong one :/ can you help me?
I prefer to take my logged users to the same page the have logged from ... it can even be cooler if i use ajax and they inmediatly get the results of trying to login to the site.
hi i have tryed to make this on my website but when the login is entered it comes up with wronge pass or username i have made all the fields on mysql and the username and pass are correct can u send me the fils u made please?
I'll keep that in mind. This video is a very generic example of logging in to a site assuming the account already exists. But yes, It would be nice to give a new user the ability to register an account, creating a username (not already used) and password.
yeah you will have that with education. to be honest college is a waste of time and money. you can self teach more. unless your going to college for the girls then you really cant beat that. expensive place to meet females though :/
I like your videos - but this login/password SQL query is susceptible to SQL injection.
Now this is probably not supposed to be an exhaustive video of creating a really robust and secure login method for production servers, but some people may misinterpret it that way.
So why not do a followup on securing things e.g. using mysql_real_escape_string?
not at all. PHP can be written/edited with any of the hundreds of free text/html/code editors out there. I use Notepad++. Crimson editor is a nice one, too. The MySQL queries are embedded in the PHP. And, you can interact with your MySQL database directly using the popular phpmyadmin interface--which most web hosts already have set up.
thank sir,,, quick but nice tut
shindedeepakm 4 months ago
Hi thanks for the great tutorial, I have a problem though, when I enter my username and password it opens checklogin.php and displays it as brut text. I don't know why it does that.
Scott38660 7 months ago
i didnt get the same results i keep getting a blank page
mrv225 7 months ago
@Flashyxxx you need the session_Destroy
matrix123120 9 months ago
my checklogin.php is blank, only this thing apper " } " can some one please help me
arnisjutsus 10 months ago
I like your tutorials.... Clear Explanation. Wonderful....
DagMaxso 1 year ago
I have error:
Parse error: syntax error, unexpected T_VARIABLE in /home/ikjvrit/public_html/flder/checklogin.php on line 6
momca96 1 year ago
it does not work can you help me
thanks
afghanyou1 1 year ago
Hunky Dory FTW.
nina1bloch 1 year ago
Thank you a lot!
This really helped me, I almost lost you at:
"session_register(myusername);"
but in this tutorial you kinda explained it :D
0110001101100100 1 year ago
thanks for this tutorial! its been such a great help! the only thing i cant get working is the logout, it goes to the logout page and all but the user can still press the back button and get back into the main page. Any ideas?
flashyxxx 1 year ago
Thanks! this tutorial is great! been searching for something simple to help me learn and this is it :)
flashyxxx 1 year ago
Thank you for your tutorial. I found a lot of tutorial to help my develop php page, but your tutorial is easier to learn.
highdown2007 1 year ago
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\x\xampp\htdocs\checklogin.php on line 7
Access denied for user 'ODBC'@'localhost' (using password: NO)
JoscalSoftware 1 year ago
hi, i would like to know,how to connect mySQL with my site,where is already Login form there. I created my site with webplusX4,can you help me ? thanks
Kooora71 1 year ago
dude i generate this code in dreamweaver it wont connect
chingkangz 1 year ago
Disregard the 2nd error I madeo n my first pos...I manage to fix it,
lightfedora 1 year ago
hi
i get the errors
Function session_is_registered() is deprecated
Use of undefined constant username - assumed 'username'
What do those mean?
lightfedora 1 year ago
REALLY EXCELLENT ALL THE VIDEOS!! Thank you very much rrphillips!! Only one thing pls:
** In login_success.php:
"session_is_registered" is deprecated now and we could get a warning message saying that. Solution: Use $_SESSION instead of "session_is_registered" . So, replace inside if( ):
!session_is_registered(myusername)
by:
!$_SESSION['myusername']
and it will work ok! - Thanks so much again!!
percival500k 1 year ago
Comment removed
percival500k 1 year ago
simple login for a website. exactly what i was looking for. very easy to follow videos, thanks!
collegeboy10390 1 year ago
what happened to your screen recorder??
Techykabas 1 year ago
You are good at explaining things and I have followed a couple of your other tutorials which after an initial issue of typo's I got working but for some reason this one seems to be quite a challenge, I have built the whole things using the page structure as you and when I understand the code more I will try to do the things you suggest towards then end but getting this working is not happening at the moment.
dashbyictfd 1 year ago
I don't know what i'm doing wrong. First of all i also got a blank page at the checklogin.php. Then i added <?php at the beginning, and then it worked. But when i logout, i still can access the login_success.php page without getting to the mainlogin page instead... Any ideas?
bib2006 1 year ago
awsome tut
dudekill613475 2 years ago
THANKS MAN!!! GREAT TUTORIAL!!!
SaintChing 2 years ago
This has been flagged as spam show
Is there a way to do this without Session_register?
ReturnOfBeaver 2 years ago
Hello...can you help me please... everytime when i click on login, i just come to checklogin.php, and i just see a white page and nothing else happend... ican't find the mistake!!!
HHCDange 2 years ago
Its the same for me :(
bk1497 2 years ago
thanks great nice but when i enter my username and password if i enter correct or incorrect it will just show me the cheklogin.php empty page it not redirect me if i enter correct id and pass to login_success.php if i enter the wrong also it not redirect me to the wrong username and password page plz help
romanbrkz 2 years ago
Thanks alot, and if you could make a register too it would be great!
WsxdrWoW 2 years ago
Great tutorials!
You should make the register one now!
dacoder96 2 years ago
wow nice. heck when I did visual basic i didnt understand the tutorials but when i did video tuts its been alot easier seems to be the same with php lol
ti07shadow 2 years ago
Can u make a tutorial about how to make a registration form, that will be very useful, i think there is no point only having a login from, when u cant register, unless you wanna keep the website only for you, but thanks....
pilo290master 2 years ago
can u tell me the possible reason why i may just see a white screen after clikin login, i use wamp5
tozzy498 2 years ago
Really good tutorial - Thanks alot brother!
DJDonaL3000 2 years ago
Thanks so much for this 10 out of 10 for the tutorial very clear and easy to follow and having the code on your site in easy steps is a bonus. Thanks again tried several tutorial before this and could not get them to work
bamboozalka 2 years ago
i can't make it when i typed my passsword and username i came to " checklogin.php " and don't got the "Wrong Username or Password " if i type the wrong one :/ can you help me?
ViscyAndStille18 2 years ago
register.php ?
Hannekik 3 years ago 3
I GOT PROBLEM. maybe my login_success.php got some errors or sumthing , but when i enter rong or correct password it goes to checklogin.php
i created all files ...
krisis32 3 years ago
I prefer to take my logged users to the same page the have logged from ... it can even be cooler if i use ajax and they inmediatly get the results of trying to login to the site.
franckmercado 3 years ago
hi i have tryed to make this on my website but when the login is entered it comes up with wronge pass or username i have made all the fields on mysql and the username and pass are correct can u send me the fils u made please?
Outwardsinc 3 years ago
can you please make a regestration page tutariol??
max100oo 3 years ago 4
I'll keep that in mind. This video is a very generic example of logging in to a site assuming the account already exists. But yes, It would be nice to give a new user the ability to register an account, creating a username (not already used) and password.
rrphillips 3 years ago
i love your tutorials
questi0n8ball 3 years ago
this is cool hope to have more videos it is informative than my school teacher
tolitzamaes06 3 years ago
yeah you will have that with education. to be honest college is a waste of time and money. you can self teach more. unless your going to college for the girls then you really cant beat that. expensive place to meet females though :/
krej27 3 years ago
I like your videos - but this login/password SQL query is susceptible to SQL injection.
Now this is probably not supposed to be an exhaustive video of creating a really robust and secure login method for production servers, but some people may misinterpret it that way.
So why not do a followup on securing things e.g. using mysql_real_escape_string?
cdhagen 3 years ago
i need visual studio for to use Mysql and write the commands??
swindler010 3 years ago
not at all. PHP can be written/edited with any of the hundreds of free text/html/code editors out there. I use Notepad++. Crimson editor is a nice one, too. The MySQL queries are embedded in the PHP. And, you can interact with your MySQL database directly using the popular phpmyadmin interface--which most web hosts already have set up.
rrphillips 3 years ago
Thx men,
I have Dreamweaver and works fine.
swindler010 3 years ago