PHP login system tutorial, using MySQL database and sessions, which includes registration, login, log out, and reset password functionality. Download source …
Original source
PHP login system tutorial, using MySQL database and sessions, which includes registration, login, log out, and reset password functionality. Download source …
Original source
32 responses to “Login System Tutorial with PHP and MYSQL Database”
To all the people who are asking about not getting account verification email. You need to modify php.ini and set your email and email host settings. Here are my settings:
SMTP = smtp.west.cox.net
smtp_port = 25
sendmail_from = vladi@clevertechie.com
You need to find out what your SMTP is and configure accordingly.
So frustrated. Can anyone help? I changed something (I don't know what) and I cannot make it go to the Sign Up portion of the form (only Login). When I click on Sign Up, It will not change! How can I fix it???
I got this message in the Sign-up page once I submitted the registration: "Fatal error: Call to undefined function password_hash() in C:wampwwwbfpsourcesregister.php on line 15"
thank you so much , this is such a great system!
When I register a "user" (still testing), it sends the email confirmation and asks me to log out, as in the video. However, if I don't log out and open another tab to my site, it does not prevent me from seeing protected content (even without confirming the email). It's just the fact that I registered the name in the database that lets me in. How do I fix that? Anyone know? UPDATE: Arihant Bedagkar RESOLVED my issue! Thank you Arihant!
Nice Work Buddy! I like your css styling, I have modified your code and added an extra option in profile.php of updating profile.
btw, a small bug, when the user is already logged in and access index.php from another tab, it doesn't redirect to profile page as user is already logged in it shouldn't show them to login/register again
so, i've added
if ( isset($_SESSION['logged_in']) ) {
header("location: profile.php");
}
at the start of index.php
it works fine now! good job!
When i am clicking on sign up button, this is not directing me to the registration page.
It is just showing the me login page no matter what i am selecting the signup or the login..
does the email need to be verified inorder for the number on "active" to show up,
coz it's only showing "0", need help pls
Excellent video! Does this setup let you in the profile.php even if e-mail is not verified? What is the best way to enforce the e-mail verification before letting users enter the profile.php?
sir i got some error after setting up and netbin and every things is "Error
Registration failed!"
I used PHPMailer and it works for me but I'm having a problem regarding on verify.php. Once I clicked the link on my email it says "Invalid parameters provided for account verification" although it is correct hash on my email
Why after registration I did not receive a reply email?
thank you~!!
Yet another issue: When a new user is logged in, instead of going to the "profile.php" with it echoing "Welcome "new user's name" email address and logout button", I want it to go to my existing index.php and say" Welcome user." [Logout] How do I do that?? Any help appreciated.
The signup part from index.php isn't working, please help.
can you please add confirm pw and confirm email and their codes if don't match also the checkbox of terms ..
Design = Excellent
Quality = Amazing
Lightweight = Yes
Stars: 4.99 (Get an extra 0.1 by making a mac tutorial!)
i dont have a php.ini file where do i add the ports and SMPt
DUDE THER IS NO PHP.INI !!!! -.-
It shows a white screen once i press signup
Thanks for sharing this amazing video!! People like you who really teach others how to code. You explain everything in detail, and it shows that you have a clear understanding of your work. Keep doing this great job!!
Great work, thank you very much!
what did he use to make those charts at 2:11?
receive email verification, however verify link does not link to success.php…..the reason is what?? can someone help me to solve it…
Hey, nice tut. I was just wondering if this all were to be coded in OO Paradigm, what difference would that have made.
hmm
I hope this tutorial will help all beginners who wants to learn PHP.
Thank you Clever Techie for this tutorial
when i download source code ; the label is very large!! , !! why and what the solution of this problem!
Good morning Sir please help me. when i registe a user, he don't get the mail. please help me. thank you
This video is freaking awesome! Thank you for producing and sharing this! I don't even know why YouTube allows thumbs/up down ratings for vids like this, it should be the option to click Like and that's it.
Can I request you to make tutorial about quiz(not that bullet(answer)'s one) using php and mysql? And it must have score and leaderboard.
super 🙂