Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (43)

Sign In or Sign Up now to post a comment!
  • Remember Me

    Thank you so much Alex i shall remember you forever.

    You are the best......

  • really very helpful videos

  • Thanks:D This help me very much! 8-D

  • 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!! :)

  • sir..!! plz :((

    help, cannot logged in !! :'((

  • 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 if ( isset($_COOKIE['username']) ) { $username = $_COOKIE['username'];

    } else if ( isset($_SESSION['username']) ) { $username = $_SESSION['username'];

    }

    echo "Welcome, ".$username."!";

  • @jimjimmy1995 whoa, thank you very very much.

  • @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 THANK YOU SO MUCH!

  • @SnowFortcom Np. You can do it much better than that though.

  • 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

  • The best php tutorials !!! Thanks Alex great job!!:D

  • This is really great. And this code is executing well...Thank you a lot....

  • 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

  • umm isn't 7200 seconds 2 hours?...

  • Alex, thank you very much, you have made my project a lot easier.

  • You give incredibly usefull php tuts but i have a question. can you redirect to another website or webpage without the header command?

  • 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.

  • cheers. this video was great. i am a newbie and helped me learn loads. now gonna build a nice little admin section from it

  • 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.

  • 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!

  • 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

  • Thank you a lot Alex!

  • 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

  • great tutorial ...thanks!

  • 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...

  • can you provide has code of these videos ??

    thanks ....

  • Hi Alex..

    Thanks for all you tutorials..

  • Many many thanks Alex!

  • nice tutorials..

    I have learn much.

  • 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!

  • 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 :-)

  • 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

  • Hi can you show how you wil recommend we set it om a homepage. wil you use frameset or how ?

  • would the

    setcookie("username","",time() work with =0 instead of -7200?

    And is it possible to set it to unlimited when logging in?

  • 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.

  • 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 :-)

  • wait, I'm not thinking properly, a minus value would make me log out anyway I guess, thanks

  • @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??

  • i believe when u put a negative number it like goes back in time so it wont expire untill theiy clean their cookies.

  • First

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more