but you forgot to the part that is relating to showing a message "incorrect pass/username combination." i tested by entering a wrong password, the message popped up just fine!! but if when i entered a wrong username it didn't do anything except resetting the fields.
please help i know it's just a minor error but i still need it to be perfect!! :)
hello alex , i have a question. If a user logs in with cookies, you will set setcookies instead of $_SESSION['username']. but if in the member area, instead of "you're in" i want to write the user's name it can't be done with $_SESSION['username'] because i set setcookie. how can i do that?
@federigaalin No problem, I've had to change a lot of alex's code to get my login working. I wanted it so that it was included onto every page not on its own page. You can see it here: fmstudios. comlu. com/register/ If you want help with doing it like I have just message me. : )
I have spent a lot of money to study php but all fail ,bcoz of my fucking institution
they provide theory only and the applications are not on their syllabus.Thanks Alex you are my only PHPguru ..Thanks a lot for your tutorials...keep going
This was great but how would you perform the remember me in which returning to the login page has your username and password already logged in and remembered. Basically how do you remember a user's username and password.
You are awesome, man. This tutorial has helped me make the login form for my gymnasium's website. I'm so glad I found this. Liked and subbed. Thanks a ton!
I followed all six tutorials and everything worked spot on, which is probably a first for me. I have learnt a lot by doing this but still have much more I would like to achieve. Thank you very much for your help.
In particular I would like to say "Hi "username" welcom to my site", but cannot figure out how to do this.
Can you make expand on this tutorial to show how to change something on index.php of dynamic page. For example if I want to see "My account" and "Logout" when i am logged in, and when i am not i want "Register" and "Login" if you understand what i am talking about. You are doing great work.
Hi Alex, that was a very useful tutorial.......great job...
Can you do a tutorial on uploading a pdf in mysql and then downloading the pdf(or many pdf) from the mysql. Please do a tutorial on this problem. Thanks
i have a problem with my files, if i try and log in i put in the correct userame and password and then i am redirected back to the login page, how can i link my pages together
You know just as a thought, we could always have the users stay signed-on even if they explicitly log out, simply by removing the code to unset cookies from the logout.php page. We could then add a link/button called something like 'Forget Me' to enable users to unset cookies when they wish to do so!
Not sure what you mean for your first question, but for your second question: If you just don't specifiy the third parameter it will exist until the user clears their browser cookies.
@phpacademy I type all things as u did but when i login with right or wrong username/password, it say incorrect password so tell me whats the problem??
Remember Me
Thank you so much Alex i shall remember you forever.
You are the best......
nidajaved139 1 week ago
really very helpful videos
thenewkolkata 1 month ago
Thanks:D This help me very much! 8-D
minecraft539 1 month ago
hi alex, thank you for all you've done!!
but you forgot to the part that is relating to showing a message "incorrect pass/username combination." i tested by entering a wrong password, the message popped up just fine!! but if when i entered a wrong username it didn't do anything except resetting the fields.
please help i know it's just a minor error but i still need it to be perfect!! :)
lovelyfuji 3 months ago
sir..!! plz :((
help, cannot logged in !! :'((
01carlyn 6 months ago
hello alex , i have a question. If a user logs in with cookies, you will set setcookies instead of $_SESSION['username']. but if in the member area, instead of "you're in" i want to write the user's name it can't be done with $_SESSION['username'] because i set setcookie. how can i do that?
federigaalin 9 months ago
@federigaalin if ( isset($_COOKIE['username']) ) { $username = $_COOKIE['username'];
} else if ( isset($_SESSION['username']) ) { $username = $_SESSION['username'];
}
echo "Welcome, ".$username."!";
jimjimmy1995 8 months ago in playlist General Tutorials
@jimjimmy1995 whoa, thank you very very much.
federigaalin 8 months ago
@federigaalin No problem, I've had to change a lot of alex's code to get my login working. I wanted it so that it was included onto every page not on its own page. You can see it here: fmstudios. comlu. com/register/ If you want help with doing it like I have just message me. : )
jimjimmy1995 8 months ago
@jimjimmy1995 THANK YOU SO MUCH!
SnowFortcom 4 months ago
@SnowFortcom Np. You can do it much better than that though.
jimjimmy1995 4 months ago
I have spent a lot of money to study php but all fail ,bcoz of my fucking institution
they provide theory only and the applications are not on their syllabus.Thanks Alex you are my only PHPguru ..Thanks a lot for your tutorials...keep going
shajijohnrose1 9 months ago 2
The best php tutorials !!! Thanks Alex great job!!:D
truckergamer 10 months ago
This is really great. And this code is executing well...Thank you a lot....
carmelraj601 10 months ago
This was great but how would you perform the remember me in which returning to the login page has your username and password already logged in and remembered. Basically how do you remember a user's username and password.
Thanks!
Great vids
chizzyi1500 1 year ago
umm isn't 7200 seconds 2 hours?...
sa7039 1 year ago
Alex, thank you very much, you have made my project a lot easier.
MrHondros 1 year ago
You give incredibly usefull php tuts but i have a question. can you redirect to another website or webpage without the header command?
jeromsavestheworld 1 year ago
You are awesome, man. This tutorial has helped me make the login form for my gymnasium's website. I'm so glad I found this. Liked and subbed. Thanks a ton!
Marcinkonys 1 year ago
I followed all six tutorials and everything worked spot on, which is probably a first for me. I have learnt a lot by doing this but still have much more I would like to achieve. Thank you very much for your help.
In particular I would like to say "Hi "username" welcom to my site", but cannot figure out how to do this.
chrisfozz 1 year ago
cheers. this video was great. i am a newbie and helped me learn loads. now gonna build a nice little admin section from it
talkietaco 1 year ago
Can you make expand on this tutorial to show how to change something on index.php of dynamic page. For example if I want to see "My account" and "Logout" when i am logged in, and when i am not i want "Register" and "Login" if you understand what i am talking about. You are doing great work.
Mladjaaa 1 year ago
Excellent tutorial. I had to go over it a few times because I made a few errors here and there but I've got it working perfectly. I love phpacademy!
jrock20023 1 year ago
i followed each video and have everything done just the way u have them done but it doesn't set the cookie but the session part works
delluser2020 1 year ago
Thank you a lot Alex!
hodollSoft 1 year ago
Hi Alex, that was a very useful tutorial.......great job...
Can you do a tutorial on uploading a pdf in mysql and then downloading the pdf(or many pdf) from the mysql. Please do a tutorial on this problem. Thanks
asctswapnil 1 year ago
i have a problem with my files, if i try and log in i put in the correct userame and password and then i am redirected back to the login page, how can i link my pages together
usman123456789101 1 year ago
great tutorial ...thanks!
Avi0107 1 year ago
hi, can you make a tutorial for ...how to display jpg or gif imagefrom database through php ??????
and thanks u for tutorials
best regards
waiting for rep...
siyaru2 2 years ago
can you provide has code of these videos ??
thanks ....
siyaru2 2 years ago
Hi Alex..
Thanks for all you tutorials..
bendzy72 2 years ago
Many many thanks Alex!
rslylmz 2 years ago
nice tutorials..
I have learn much.
Hulle107 2 years ago
Hi Alex,
Thanks a lot for this long-awaited tut!
You know just as a thought, we could always have the users stay signed-on even if they explicitly log out, simply by removing the code to unset cookies from the logout.php page. We could then add a link/button called something like 'Forget Me' to enable users to unset cookies when they wish to do so!
omanoman98 2 years ago
Hi!!! Alex...your tutorials on php are d best!!
Can you do a tutorial on how to add a download part for my site???
Suppose i have some stuff i want my users to download how can i do dat using php & ftp???
It will be very helpful for students like me...
Thnx...& keep those tutorials coming :-)
crystalcyanide00 2 years ago 5
u mean like u upload the files, and all the links show on a page for the user to download? i can help u with that
shanetalbert 2 years ago
Hi can you show how you wil recommend we set it om a homepage. wil you use frameset or how ?
CyberZ1983 2 years ago
would the
setcookie("username","",time() work with =0 instead of -7200?
And is it possible to set it to unlimited when logging in?
saljersaker 2 years ago
Not sure what you mean for your first question, but for your second question: If you just don't specifiy the third parameter it will exist until the user clears their browser cookies.
phpacademy 2 years ago
if I set it to unlimited (aka removing the time completely) how would I then reverse the process when logging out, unless time()=0 works?
thanks :-)
saljersaker 2 years ago
wait, I'm not thinking properly, a minus value would make me log out anyway I guess, thanks
saljersaker 2 years ago
@phpacademy I type all things as u did but when i login with right or wrong username/password, it say incorrect password so tell me whats the problem??
ShAh3ryar 9 months ago
i believe when u put a negative number it like goes back in time so it wont expire untill theiy clean their cookies.
stategamer 2 years ago
First
igkx 2 years ago