User email verification in PHP + Login & Signup | source code included | Quick programming tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 149

  • @obesguan
    @obesguan 10 หลายเดือนก่อน +1

    Best tutorials on TH-cam, thank you so much!!! One follower for life of this channel!!

    • @QuickProgramming
      @QuickProgramming  10 หลายเดือนก่อน +1

      Thanks for this wonderful endorsement, I really appreciate it. Am glad the video was useful too😊

  • @CrustyCrazer
    @CrustyCrazer 3 ปีที่แล้ว +1

    I got your problem in the middle of the video. I guess you already found out, but if not:
    password_hash is different and much better than other hashing functions, because its *salted*.
    but therefore, to login you have to use password_verify($password, $hashed_password).
    $arr['email'] = $data['email'];
    $query = "select * from users where email = :email limit 1";
    $row = database_run($query, $arr);
    if(is_array($row)){
    $hash = $row[0]->password;
    if(password_verify($data['password'], $hash)) {
    $_SESSION['USER'] = $row;
    $_SESSION['LOGGED_IN'] = true;
    Thank you so much for everything!! I love your videos and I am learning a lot from them!

    • @CrustyCrazer
      @CrustyCrazer 3 ปีที่แล้ว

      I would like to add a question:
      Why do you prefer working with $redirect at 60min of the video?
      Why not this shorter and simplier way:
      function check_login(){
      if(isset($_SESSION['USER']) && isset($_SESSION['LOGGED_IN'])){
      return true;
      }else{
      header("Location: login.php");
      die;
      }

  • @pcprodoc
    @pcprodoc 3 ปีที่แล้ว +2

    This looks like it is object oriented using PDO whereas I have been learning functional with mysql. What I have taken from this is PDO can still use mysql statements as I was under the impression PDO was an entirely different storage facility. You should have stated this in your title as people like me may not want to waste 2 hours getting confused, but there was still a learning experience just the same. Thank you for another eye opener. I guess now I have to learn the difference between object oriented vs functional. I have to stick with functional as this is the path I chosen. I will be able to incorporate this into my already existing system with a few tweaks. Thumbs Up!

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว +1

      glad you learnt something. PDO doesnt necessarily mean object oriented though. it can be used in procedural programming just as well. PDO is simply a universal way to connect to different databases. thats its primary job. it makes it easier to change database types at any time without having to change much of your code. it also works very well with prepared statements and thats why i prefer it.
      but i would encourage you to learn OOP. i have an entire playlist on my channel. OOP makes your code more scalable. i cant imagine building a large website without OOP. its the same way when first learning to code, you dont use functions. but after you learn them, you cant imagine not using them. thats how classes are like. once you learn them, you cant live without them, so give it a shot one day, that way you can work on any project that comes your way

  • @stealth2338
    @stealth2338 ปีที่แล้ว

    God bless you brother, I Just completed my login page, after trying lots of others, this stands out

  • @rickxzz
    @rickxzz 2 ปีที่แล้ว +4

    watched the vid and at the end I questioned myself: is it really free? thats such an amazing content!
    jokes apart, you're really going to save my course project! thank you so much! keep up the good content

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว +1

      😁thanks for the awesome compliment🙂

  • @shubh-kr
    @shubh-kr 3 ปีที่แล้ว +1

    You could really use the video chapters feature for long duration videos that TH-cam provides. Your videos are very helpful but I'm wondering why you've got only 2226 views till date (2nd Jan 2022).
    In my opinion, if I want a quick solution to verifying an email problem or a quick solution to creating a signup form and php code for that or login code, I'd really love to jump to a specific timestamp in a video rather than sitting and watching it for the next 2 hours.
    By the way, I'm at 1:26:00 right now still 40 minutes to go and I'm really, really, really enjoying it. Thought you could use an another suggestion.

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว

      thanks for the suggestion. i do add chapters on other videos but its time consuming and i have a lot of work to do. these videos are free and i dont get paid for making them, so its not really a good way to spend my time making chapters. if someone can chapter them, i can add the information to the description of pin the comment to help others

  • @jaybaidoo2846
    @jaybaidoo2846 2 ปีที่แล้ว +3

    Well done. Amazing everything I needed was here. So talented. Also after 2 hours of tiring programming you added source code for free. 😊😊

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      You're most welcome and thanks for leaving some feedback😊😊

  • @MOVIES_HUB120
    @MOVIES_HUB120 8 หลายเดือนก่อน +1

    thanks brother, you are such a nice person

    • @QuickProgramming
      @QuickProgramming  8 หลายเดือนก่อน

      Thanks for your kind words, I appreciate 😊

  • @justjocore
    @justjocore ปีที่แล้ว +1

    That was one of the most helpful videos i've seen so far. At 1:12:30 Wasn't there the option to use password_verify() or wasn't that an option 2 years ago?

  • @zawawii5196
    @zawawii5196 2 ปีที่แล้ว +1

    you've really saved my course project

  • @thelegaldrive
    @thelegaldrive 5 หลายเดือนก่อน

    Extremely helpful video, thank you.

  • @Not_Your_Average_Fx_Trader
    @Not_Your_Average_Fx_Trader 4 หลายเดือนก่อน

    Thanks so much for this wonderful tutorial

  • @kulmiyetechnologyWorld
    @kulmiyetechnologyWorld 3 ปีที่แล้ว +2

    Thank you so much sir this is what i have been looking for 💞💞💞💞💞

  • @mdal-aminkhanbishal4873
    @mdal-aminkhanbishal4873 9 หลายเดือนก่อน

    You are a best teacher ❤❤❤❤

  • @Patrice-gd5tp
    @Patrice-gd5tp 8 หลายเดือนก่อน

    Excellent Tutorials! Thank you

  • @life_with_masa
    @life_with_masa 3 ปีที่แล้ว +1

    Thank you so much...you deserve much more support ❤️

  • @haroldjosephmacuha9659
    @haroldjosephmacuha9659 2 ปีที่แล้ว +1

    hey bro thats amazing content this help me alot

  • @CHSKnight
    @CHSKnight 3 ปีที่แล้ว +2

    I've been looking for something like this

  • @danieligbinidu6880
    @danieligbinidu6880 ปีที่แล้ว

    Keep it going you're really amazing i really appreciate your effort 💪🏽💪🏽💪🏽💪🏽

  • @garybowdridge5324
    @garybowdridge5324 6 หลายเดือนก่อน

    Thank you. This gave me a very good start. I'm afraid the security would be fairly easy to break on this since a fake email address can be used and 100,000 posts of numbers to the verify form. I don't see any code discussed that would limit the number of attempts. Although it may seem non-trivial to send 100,000 posts to the verify form, I'm fairly sure that today it would be trivial indeed. If I am mistaken, please help me understand what I am missing in the code. What I did was set a session variable that to a counter. it gets set to 1 on registration and checked for value between 1 and less than 10 in the verify function, the verify function then increments this session variable. I just set my session expiry on the server to be one day so once they hit the limit they need to wait one day. I'm curious about what other solutions for this there are.

  • @ZGDX_Smiling070
    @ZGDX_Smiling070 2 ปีที่แล้ว

    ❤❤❤❤❤ pls never stop helping fellow web devs

  • @NagaTampan
    @NagaTampan 10 หลายเดือนก่อน +1

    it work, thank you

  • @keepitsimple3645
    @keepitsimple3645 2 ปีที่แล้ว +1

    thanks your tutorial is very interesting

  • @M.Hussein500
    @M.Hussein500 2 ปีที่แล้ว +1

    Thank you for this, you are a life saver

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว +1

      You're most welcome and thanks for your feedback

  • @F_F996
    @F_F996 ปีที่แล้ว +1

    Hi sir! Please make a tutorial for signup using a Google account 🙏

  • @amingol1980
    @amingol1980 2 ปีที่แล้ว +1

    It was awesome 👏👏👏👏🙏

  • @ugurben
    @ugurben ปีที่แล้ว

    kral kral

  • @priyankaa5557
    @priyankaa5557 2 ปีที่แล้ว +1

    Nice

  • @mahmudmustaphagana2692
    @mahmudmustaphagana2692 ปีที่แล้ว

    Thank you for this wonderful tutorial, I really appreciate it 👍
    But, do you mean whenever you are going to sign up you must set your email account security as you did?

    • @QuickProgramming
      @QuickProgramming  ปีที่แล้ว

      at what video time is the issue you're talking about?

  • @ajgeriane8584
    @ajgeriane8584 2 ปีที่แล้ว +4

    You got another subscriber :). I'm not into commenting in tutorials but this video makes myself to. The code is clean and the tutorial is clear. I want to say Thank you for everything. I can see your patience, hard work and talent in your video. I appreciate you bro, a lot.

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว +1

      Thanks for the sub! and i highly appreciate your feedback. It helps me make more content :))

    • @ajgeriane8584
      @ajgeriane8584 2 ปีที่แล้ว

      @@QuickProgramming Do you have a discord channel?

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว +1

      @@ajgeriane8584 i dont have one because i wouldnt have time to manage it. but you can send me a message on facebook if you need to facebook.com/quickcode

  • @EricAstarcom
    @EricAstarcom 3 ปีที่แล้ว +1

    wonderful

  • @swapCode
    @swapCode 3 ปีที่แล้ว

    Hello thank you so much for your lessons and we are witing for new things Quick Programming
    I just want to pay attion to something like when we use $errors variable that give us a error undifinde variable and I saw that you make a variable in the top of the page with a empty array but we can use isset($errors) and problem will solve with out add a empty value to the variable. So what do you think ?

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว +1

      Thanks. if you have an empty variable at the top, there will be no need to use isset, meaning less code. The less code the better. But there are no right or wrong ways to do it. If it works fine for you, no problem, use isset() function. As long as you don't use too much code to do the same thing

    • @swapCode
      @swapCode 3 ปีที่แล้ว

      @@QuickProgramming yeah right and that's amazing I agree with you I just was think when i use isset is better for code and clean
      So use variable is better than isset

  • @dopamine9206
    @dopamine9206 2 ปีที่แล้ว +1

    thanks man

  • @nigelpallatt
    @nigelpallatt 2 ปีที่แล้ว

    I'm confused are you saying at 1:58:05 that my users have to have two-way authentication?

  • @martinemmanual1094
    @martinemmanual1094 3 ปีที่แล้ว

    Hi i liked ur video and learned a more a lot in the complete login and sign up....Canu tel me how to host this is in live server

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว +2

      to host, simply copy the files to the public_html folder on the online server, then export your database and import it into an online database you create. thats pretty much it. but when you have time, watch this other video for some basic security habits as well. more knowledge is always better th-cam.com/video/pIO0pmMTJ6Y/w-d-xo.html

    • @martinemmanual1094
      @martinemmanual1094 3 ปีที่แล้ว

      @@QuickProgramming Actually first I tired uploading the files as u said and did everything propelly

    • @martinemmanual1094
      @martinemmanual1094 3 ปีที่แล้ว

      @@QuickProgramming but it is not working

    • @martinemmanual1094
      @martinemmanual1094 3 ปีที่แล้ว

      @@QuickProgramming thanks for the reply

  • @zawawii5196
    @zawawii5196 2 ปีที่แล้ว

    THANK YOU soooo much

  • @MrTyronM1
    @MrTyronM1 8 หลายเดือนก่อน

    To get the password hash to work instead you just need to do the following in login instead :
    if(is_array($row)){
    $row = $row[0];
    if(password_verify($data['password'],$row->password)){
    $_SESSION['USER'] = $row;
    $_SESSION['LOGGED_IN'] = true;
    }else{
    $errors[] = "wrong email or password";
    }
    }else{
    $errors[] = "wrong email or password";
    }
    }
    It turns out you just need to use password verify instead as this extracts the salt from the stored hash, it combines it with the password provided by the user, hashes this combination, and then compares it with the stored hash. If they match, the password is correct.

  • @jimohfaruqozovehe1361
    @jimohfaruqozovehe1361 ปีที่แล้ว

    Nice tutorial......but I can't use php mailer is not working anymore..... please could you make a tutorial that uses nodemailer
    Thank I'll be great if I get a prompt response

    • @QuickProgramming
      @QuickProgramming  ปีที่แล้ว

      i use phpmailer in my projects and it works fine. i just used it yesterday on a project and it worked fine. If you're using a live server, you dont need an third party classes, just use the mail() function, it works fine too but doesnt work on localhost. check php.net on how to use the mail function. they have plenty of example you can simply copy and paste

  • @amirayuuki6636
    @amirayuuki6636 2 ปีที่แล้ว +1

    if there is another life, i would definitely marry you my guy. out of many tut yours the one works the best. god bless you. you just save my grade from failling.

    • @amirayuuki6636
      @amirayuuki6636 2 ปีที่แล้ว

      THANK YOU SO MUCH

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      Hahaha thanks for the compliment😂 am glad to have saved your grade😁 you're most welcome

    • @amirayuuki6636
      @amirayuuki6636 2 ปีที่แล้ว

      @@QuickProgramming can you do one with update? im having problem with update data to the database

  • @haroldjosephmacuha9659
    @haroldjosephmacuha9659 2 ปีที่แล้ว

    can you make a tutorial about phone login and sign up using twillio

  • @MashuduDanielRambau
    @MashuduDanielRambau 3 ปีที่แล้ว

    Thanks for the wonderful tutorial, I have a question if I am using if($_SERVER['REQUEST_METHOD'] == "POST") and I have two forms on the same script how do I differentiate the both form if they are using post method

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว +1

      if you have 2 forms, give each submit button a value, then check which value was submitted to know which form was clicked. e.g
      then use this in your php:
      if($_SERVER['REQUEST_METHOD'] == "POST"){
      if(isset($_POST['form1'])){
      //form 1 was submitted
      }
      if(isset($_POST['form2'])){
      //form 2 was submitted
      }
      }
      another way is to add hidden fields with values unique to each form, then check which value was submitted to know which form was submitted. its exactly like this example except you're using hidden inputs instead of the submit button

    • @MashuduDanielRambau
      @MashuduDanielRambau 3 ปีที่แล้ว

      @@QuickProgramming Thank you so much

  • @evangienielacuna3476
    @evangienielacuna3476 ปีที่แล้ว +1

    Hi. Thank you it's working😭
    Can you put an CSS on it? Thank you

    • @QuickProgramming
      @QuickProgramming  ปีที่แล้ว

      you're most welcome! you can put css on it yes

  • @programmingstudent8238
    @programmingstudent8238 3 ปีที่แล้ว

    I like the tutorial, but I am stuck. I have been looking for similar tutorial with no luck
    1. Lets say I want to retrieve the in session user data and make a profile that can be updated.
    2. Retrieve all the data into a table,
    Do you have a tutorial covering that or documents you can refer or the syntax on how I can do that with PDO. I am still learning the concept of PDO and I would appreciate any help

    • @programmingstudent8238
      @programmingstudent8238 3 ปีที่แล้ว

      I want some along these code
      $currentuser = $_SESSION['USER']->id;
      function getuserdata($currentuser)
      {
      $query = "select * from users where id = '$currentuser' limit 1";
      $row = database_run($query);
      }

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว

      this will give you the concepts of PDO th-cam.com/video/w-haT1hXmjc/w-d-xo.html
      but you can watch my other series on setting up user profiles etc. the series are long but you can always stop once you learn enough.
      social website from scratch th-cam.com/video/VeOhsHkMaKQ/w-d-xo.html
      live chat th-cam.com/video/vKqL5OM6kIk/w-d-xo.html
      student management system th-cam.com/video/ztDGTjXlY5U/w-d-xo.html

  • @torresjuven4929
    @torresjuven4929 2 ปีที่แล้ว

    the please enter valid username is not showing, its shows blank page

  • @farihasultana3550
    @farihasultana3550 2 ปีที่แล้ว

    There is no error showing but nothing is inserted in verify table

  • @tylerflaviano2023
    @tylerflaviano2023 3 ปีที่แล้ว

    Sir can you make a video tha show pogin in one tap!?
    I mean , if user is logged and close the browser don't insert anymore their details

  • @jaybaidoo2846
    @jaybaidoo2846 2 ปีที่แล้ว

    Is there a way I could apply the same method but to desktop application login not web page login please?

  • @cjosiahonuoha8295
    @cjosiahonuoha8295 3 ปีที่แล้ว +1

    Please if the site is online, how do u make it send code, since we are not using gmail or yahoo there

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว +1

      You can still use Gmail or Yahoo even there. But if you want to have the email look like "email@your_domain.com", then create your email address using your hosting account. Every hosting account comes with email features to allow you to create email addresses. Then you can choose one of those emails to use. Use the email and the email password.
      As for SMTP server name, check your hosting account details. It's usually displayed somewhere or you can ask your hosting provider for it.

    • @cjosiahonuoha8295
      @cjosiahonuoha8295 3 ปีที่แล้ว

      @@QuickProgramming thanks sir

  • @rightokon3139
    @rightokon3139 ปีที่แล้ว

    Why is my code not working on function 94

  • @a1appbuilder
    @a1appbuilder 2 ปีที่แล้ว

    any instructions on what to do since google close the use of less secure apps

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      I need to check that, but securing your app is easy because you simply need an SSL certificate on your domain, I.e HTTPS instead of HTTP. Every hosting company now offers one for free when you first signup

  • @dreamweaver2335
    @dreamweaver2335 2 ปีที่แล้ว

    Thank you sir for the detailed instruction, but since May 30, 2022 Google changed their policy:
    Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.
    The same issue is with yahoo as well.
    Any advices on how to be able to send mails sir?

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      Are you sending from localhost or you'll be using a live server eventually?

    • @rabishmahto7216
      @rabishmahto7216 8 หลายเดือนก่อน

      Not getting emails from localhost

  • @raksdigital5714
    @raksdigital5714 2 ปีที่แล้ว

    Thank you sir .. but why it is not working on me? haven't receive any email. please help

  • @nbn7950
    @nbn7950 2 ปีที่แล้ว

    Its says wrong code after receiving from gmail what to do??

  • @vaishalijain-w4k
    @vaishalijain-w4k ปีที่แล้ว

    hello sir,
    how i can modify code so that user can verify after registeration and than login should be allowed??

  • @kratos4358
    @kratos4358 ปีที่แล้ว

    mail was not verified, still it is showing Verify Profile button. can any help me

  • @muhammadrasyaasysyifa9026
    @muhammadrasyaasysyifa9026 ปีที่แล้ว +1

    how to solve such error
    Warning: Undefined property: stdClass::$email_verified in C:\xampp\htdocs\verify\functions.php on line 137

  • @joyannevalmores8349
    @joyannevalmores8349 3 ปีที่แล้ว

    Thank you .this video help me with my project .
    But i don't know to set the login page to be log in using username or email . Please help me 🥺

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว +1

      watch some more videos ive done on login and signup here. they will help you understand. watch all three if possible. in case they all dont solve your problem, let me know afterwards so i can find you a solution.
      th-cam.com/video/WYufSGgaCZ8/w-d-xo.html
      th-cam.com/video/ymPlbgz6BoU/w-d-xo.html
      th-cam.com/video/pIO0pmMTJ6Y/w-d-xo.html

  • @katzpagdanganan7719
    @katzpagdanganan7719 ปีที่แล้ว

    Hello, does it still work smoothly if many users registers and verify at the same time?

    • @QuickProgramming
      @QuickProgramming  ปีที่แล้ว +1

      Yes it works just fine even with multiple users

    • @katzpagdanganan7719
      @katzpagdanganan7719 ปีที่แล้ว

      @@QuickProgramming how to make it like after clicking the register it will automatically go straight to verify and you cannot login if you are not verified?

  • @jerryxu2204
    @jerryxu2204 2 ปีที่แล้ว

    Hello sir, when I registered it for the first time it goes well, but for the second time when I register with another email, it didn't send me the code, while it shows "NULL" in verified email in localhost database. What's the problem with that?

  • @AsadKhan-wc9jx
    @AsadKhan-wc9jx 2 ปีที่แล้ว

    Hello sir i am in big trouble need your help badly.

  • @obeidfouad1011
    @obeidfouad1011 2 ปีที่แล้ว

    please, I have a problem that I'm receiving a code in my database (phpmyadmin) but not receiving any E-mail, I don't really know what's the problem, can you help?

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      there is an easier way to send emails but you need to use a live server for it to work. it doesnt work on local host. so create your code locally but test it on an online server. its as simple as using one function like this:
      $email = "someone@example.com";
      $subject = "My subject";
      $msg = "my message";
      mail($email,$subject,$msg);
      you can use this instead, but it only works on a live server

  • @aya_momin
    @aya_momin 9 หลายเดือนก่อน

    its two factor authentication ?

    • @QuickProgramming
      @QuickProgramming  9 หลายเดือนก่อน

      The code can be used for that too, but this email verification after signup

  • @henrichbryanchiongmaya6709
    @henrichbryanchiongmaya6709 2 ปีที่แล้ว

    WHY MY FILTER_VALIDATE_EMAIL DON'T WORK? PLEASE HELP ME...

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      its usually if you spell it incorrectly or something is missing in the code. please check it letter by letter to confirm everything is correct

    • @henrichbryanchiongmaya6709
      @henrichbryanchiongmaya6709 2 ปีที่แล้ว

      @@QuickProgramming it is not really working, I check it for almost 3 hours. :((

  • @ankansamanta4533
    @ankansamanta4533 3 ปีที่แล้ว

    Can its api be made? So that I can use it in Android app

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว

      you dont need an api to use an android app. just connect your app to the database the same way you connect a website to a database. no api is needed

    • @ankansamanta4533
      @ankansamanta4533 3 ปีที่แล้ว

      how can i use it in Android studio

  • @soomann2716
    @soomann2716 ปีที่แล้ว

    One thing I found is Suppose if a user tries to sign in but not verify his email...then neither user can log in and his signup details will be saved in database even though his account is not verified.Any solution to it?
    Because if he didnt verify his email after certain time his details should be disappeared from the database

    • @QuickProgramming
      @QuickProgramming  ปีที่แล้ว

      there is no need to delete user details even for non verified accounts, because the same user can come back after a month or even 6 months to try and signup again and you can save time by simply telling them to verify their email.
      secondly deleting rows from your database slows down your database because the index must be reset to account for the missing rows. Its better to just leave the rows.
      thirdly it simply adds code you dont really need. Dont make your apps more complicated than they need to be. A database can handle a billion rows without any problem. i doubt you will ever get 1 billion users on your platform so dont worry about it. Even if everyone on the planet signed up to your app and only 10 people were active, your database will work just fine

    • @soomann2716
      @soomann2716 ปีที่แล้ว

      @@QuickProgramming thanks for clearing the doubt

  • @christianelmartcruto1976
    @christianelmartcruto1976 2 ปีที่แล้ว

    good day, i tried the code but it's not sending verification email, can you help me sir fix this error

  • @AsadKhan-wc9jx
    @AsadKhan-wc9jx 2 ปีที่แล้ว

    What about forgot password?

  • @savy5435
    @savy5435 3 ปีที่แล้ว +1

    Good day my good sir, please im so sorry to bother you with this, but do u have anything on reset password, thank you

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว +1

      its no bother. yes i do have a tutorial on that here th-cam.com/video/cAdIUcobXa0/w-d-xo.html

    • @savy5435
      @savy5435 3 ปีที่แล้ว

      @@QuickProgramming thank you for your reply

  • @tylerflaviano2023
    @tylerflaviano2023 3 ปีที่แล้ว

    no error but I am not recieving the code in my email account , help me please sir

    • @belkisexo6670
      @belkisexo6670 2 ปีที่แล้ว

      Did you find out the problem? Because I have the same

    • @johnvincentalmonia8880
      @johnvincentalmonia8880 2 ปีที่แล้ว

      Same bro. How did you fix that bug?

  • @soself_learner412
    @soself_learner412 3 ปีที่แล้ว

    Hi man, I need some help. may I have your email or something to contact you cuz got a lot of error when using the code below from the mail.php
    $mail->MsgHTML($content);
    if(!$mail->Send()) {
    echo "Error while sending Email.";
    echo "";
    var_dump($mail);
    return false;
    } else {
    echo "Email sent successfully";
    return true;
    }
    Then the var_dump show me the object or array info.. but I don't quite understand.

    • @soself_learner412
      @soself_learner412 3 ปีที่แล้ว

      ok, suddenly problem or bug settle but may I know this kind of methods only work on one account ??

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว

      its good you solved the problem. this method can work on any number of accounts as long as you enter the correct details. but there is no need to use multiple accounts. if you have a website were you want to be sending multiple emails to clients, you just need to open a company email and use that.
      if you want each user on your website to use their own email address, then you'll need to make the username and password as variables that you can input in the function depending on which user is logged in. but i dont recommend this since each user has to allow access to your app from their email settings, so this is not reliable. better to use only one company account to send all emails

    • @soself_learner412
      @soself_learner412 3 ปีที่แล้ว

      @@QuickProgramming Ok, got it. Thank your explanation and suggestion. I will take more time to learn it.

  • @swapCode
    @swapCode 3 ปีที่แล้ว

    Hello again Quick Programming for the problem when you try to login and the password keep change because of function password_hash you can solve it but using password_verify that take the login password from the user without hashing and take the password from the databse and it's check if it's the same or no liek that:
    if (count($errors) == 0)
    {
    $arr[':email'] = $data['email'];
    $pass = $data['password']; // don't hash the password
    $query = 'SELECT * FROM users WHERE email = :email limit 1';
    $row = database_run($query, $arr);
    if (is_array($row))
    {
    if ( password_verify($pass, $row[0]->password) ) // here we use the function
    {
    $_SESSION['USER'] = $row;
    $_SESSION['LOGGED_IN'] = true;
    }
    } else {
    $errors[] = 'Email or Password not correct';
    }
    }

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว +1

      Thanks for the tip, yes I figured that out much later and have used it in other tutorials already. This was the first time I was using password_hash. I normally use hash() function

    • @swapCode
      @swapCode 3 ปีที่แล้ว

      ​@@QuickProgramming yeah great.
      I will share the source code of the login form that I made with you I have just a little difreent of strutcer and I would like if you could check it for me if it's amazing and give me some advice
      Where I can send you my source code here or any other platform of social media?

  • @filippohinceanu7392
    @filippohinceanu7392 ปีที่แล้ว

    the reset password?

    • @QuickProgramming
      @QuickProgramming  ปีที่แล้ว +1

      here th-cam.com/video/cAdIUcobXa0/w-d-xo.html

    • @filippohinceanu7392
      @filippohinceanu7392 ปีที่แล้ว

      it's amazing that it takes so many hours of programming for things that don't last long

    • @QuickProgramming
      @QuickProgramming  ปีที่แล้ว +1

      @@filippohinceanu7392 well, i guess thats why programmers are paid so much🙂 coding takes too much patience, its like animation

    • @filippohinceanu7392
      @filippohinceanu7392 ปีที่แล้ว

      @@QuickProgramming the page works and sends the data, but the latter are not entered into the database

  • @gfjwgldwzqfdkgdhdfdjledkdd9856
    @gfjwgldwzqfdkgdhdfdjledkdd9856 3 ปีที่แล้ว

    woah thats hard

  • @oamioxmocliox8082
    @oamioxmocliox8082 3 ปีที่แล้ว +1

    ;)

  • @rwema
    @rwema 2 ปีที่แล้ว +2

    Youre Amazing!!!!!!!🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰

  • @mushlee_tbe
    @mushlee_tbe ปีที่แล้ว

    hello @Quick Programming i need help ..... Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'verify_db.verify' doesn't exist in C:\xammp new\htdocs\verify\functions.php:98 Stack trace: #0 C:\xammp new\htdocs\verify\functions.php(98): PDOStatement->execute(Array) #1 C:\xammp new\htdocs\verify\verify.php(19): database_run('insert into ver...', Array) #2 {main} thrown in C:\xammp new\htdocs\verify\functions.php on line 98

    • @QuickProgramming
      @QuickProgramming  ปีที่แล้ว

      that means you havent created the verify table inside the verify_db database

  • @amingol1980
    @amingol1980 2 ปีที่แล้ว +1

    I would like to give you 1000 likes but only 1 like I can, thank you so much, I have watched many tutorials from many channels but I recommend to all people that subscribe you immediately.

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      thank you, i appreciate your compliment and support :))