Complete PHP Registration w/ Email Verification

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 273

  • @icaras12x87
    @icaras12x87 5 років тому +26

    Your soothing voice and clear instructions make this tutorial the best out there. Thank you for this sir you are great

  • @JamesAutoDude
    @JamesAutoDude 4 роки тому +9

    Never knew you could just update the string with a new value 🤔 out of all the years I've been using PHP too! Time to do some coding updates 😂
    Thanks so much for the video!!!

  • @thalia4045
    @thalia4045 5 років тому +8

    Hey, i was trying to learn how to make a secure registration system for a new web app, all i can say is you are really helpful and clear. Amazing job continue with such tutorials. Subscribed!

  • @ilovechinesefood4312
    @ilovechinesefood4312 2 роки тому +2

    What Mr.Sean did in 21mts, other Channels do half that in 180mts, while all the time incorporating several confusing code Routines, thus making them too complex for anyone to follow, and yet garner all the traffic and more so leading a lot astray. YT, should have a mechanism put in place to identify Genuine and service minded individuals like Mr. Sean and promote them.

  • @ShawnRitch
    @ShawnRitch 11 місяців тому

    I did my research before deciding on a signup / login method and found the email verification keeps a lot of the riffraff out. Your method here is a gem. Thank you very much. PS I hope to add SMS / phone verification in as well soon.

  • @Cyber99221
    @Cyber99221 4 роки тому +1

    Those 6 dislikes are literally BS. They probably don't have a smtp server running, therefore their mail() function didn't work, so they decided to dislike it. Anyway, this video was amazing and very helpful. Thank you very much, it helped me understand some stuff I was iffy about. Good luck, I'm definitely going to subscribe.

    • @ismailaayar7809
      @ismailaayar7809 4 роки тому

      its not working for me bcz of smtp server . how i can have one ?

  • @gibbsj69
    @gibbsj69 2 роки тому

    really like this channel. sean has a great voice and should be doing voice overs as a side hustle.

  • @Darkest-Kn1ght
    @Darkest-Kn1ght 5 років тому

    Just came across your channel and I'm thoroughly enjoying it. I see your last video was posted 4 months ago, and I'm hoping that you're just on an extended break. You're videos are so easy to follow, I'm hoping to learn a lot more php and MySQL from future videos!

    • @phpBasics
      @phpBasics  5 років тому +1

      Hi Ray. I have quite a bit of new and exciting material to cover. Videos coming very soon.

  • @phpBasics
    @phpBasics  2 роки тому +1

    So, a couple things here. 1) Use password_hash when storing passwords (check out my video). 2) Using prepared statements is the best approach to prevent SQL injection (check out my video). 3) You'll notice I did not strip htmlspecialchars from the GET method, exposing the database. Do that.

  • @logireloco123
    @logireloco123 4 роки тому +2

    Love this channel, loved the explanation, loved the syntaxis, loved everything. Great work, you helped me understand few things. Anyways I have to improve. But the only way to learn is practice everyday

  • @gerritsx9
    @gerritsx9 2 роки тому

    took me a week to complete the video from installing required stuff to running into problems, to fixing updated things anyhow great video!

  • @simiyukuloba3109
    @simiyukuloba3109 2 роки тому

    Bless you. This has been extremely helpful. I'm going to do the code and try it out but from your explanation, I'm sure things will work out. You are audible, clear, detailed and just the perfect person for this topic. Thanks so very much.

    • @AtomTCP
      @AtomTCP 2 роки тому

      i try and mail function doesn to work, whats about about you

  • @LaurinusPonpon
    @LaurinusPonpon 3 роки тому +1

    Awesome work ! I integrate that to my project and it's working like a charm.

  • @joshuahall6337
    @joshuahall6337 4 роки тому +1

    This is the first effective tutorial I've watched that provides an email verification system. It worked BTW, god bless!

  • @NickKarm
    @NickKarm 2 роки тому

    This is the best tutorial on this topic by far. Good explanation, and everything works well! Thank you so much!

  • @photoinshot1355
    @photoinshot1355 3 роки тому

    As always with your videos clear precise and easy to understand, thanks I have learnt a lot from all your videos. It would be great to see an update on how to convert this code to work with PDO and the new security as shown in your other video Password Security. I have tried a few times, but my knowledge is not good enough yet. I can get the updated way to hash but not yet worked out how to get verify to work. But this way works a treat thanks again!

  • @Edward-bm7vw
    @Edward-bm7vw 3 роки тому +7

    12:36 This code you're typing is extremely susceptible to SQL injection. You should never immediately put user provided data directly into a SQL string for any reason. You need to use prepared statements as well as validate all inputs

    • @Edward-bm7vw
      @Edward-bm7vw 3 роки тому +1

      @@johnndees1397 As I mentioned you should be using prepared statements as well as validating input. I prefer to use PDO not the mysqli_* functions but if you're stuck with them then you can use the mysqli prepare functions. Here's an example from the PHP documentation:
      www.php.net/manual/en/mysqli.prepare.php

  • @uptaker3215
    @uptaker3215 4 роки тому +1

    this was awesome! it worked very well for me

  • @phpBasics
    @phpBasics  5 років тому +77

    The idea behind this channel is to teach people how to code, not provide free source code for lazy people.

    • @kanikan8660
      @kanikan8660 4 роки тому

      Hi! Thank you for this great video. You showed us within 21 min what most other channels would have take 2 hours to explain and not with your level of clarity. Trust me!
      Your code works amazingly well. But one thing... I would like to restrict the emails duplication. I tried a thousand codes. Nothing works.
      Your help would be greatly appreciated. Thank you in advance!

    • @lazyever
      @lazyever 4 роки тому

      I couldn't agree with you more. Keep it up bro!

    • @tedspens
      @tedspens 4 роки тому

      The problem with copying and pasting source code is that those who do it almost never know how it actually works. Thanks for this excellent video and the clear explanation.

    • @selfregulator
      @selfregulator 4 роки тому +2

      Fair comment, but it is also nice to know the tutorial you're following actually works before you invest the time trying to understand and learn from it.

    • @RacoonCH
      @RacoonCH 4 роки тому

      @@selfregulator Well, if that's not gonna work, you'll have to 'self regulate' it. ;)

  • @maxklevebrand2640
    @maxklevebrand2640 4 роки тому +1

    I am not the best at PHP but how do I know if I'm "Logged in". Is there a session value or anything that I can use to see if the user is logged in? I want to do certain changes to my website when I am actually logged in. For example, it says login at the top right corner when I'm logged out and when I'm logged in it will say logout. Very good video! I was searching for a video like this for about 1 hour. Glad I found this video tutorial.

    • @phpBasics
      @phpBasics  4 роки тому

      Hi Max. Check out my Login System video. If this doesn't answer your question, hit me up on Skype: Cooleditz -
      ua-cam.com/video/-7JdLn5gOfg/v-deo.html

  • @esofialo23
    @esofialo23 5 років тому +3

    Works perfectly, thank you :D

  • @alseynidiop8650
    @alseynidiop8650 3 роки тому

    You are great, thank you. Clear voice and nice explanations.

  • @rafaelbarreto2658
    @rafaelbarreto2658 5 років тому

    Wow you have the gift of teaching! Thank you very much. God bless you!

  • @alifirhas3550
    @alifirhas3550 3 роки тому

    wow I thought it would be difficult to do that, apparently not because your explanation was very clear.
    edit : stuck on mail server

  • @brnheavymetal
    @brnheavymetal 4 роки тому

    Great tutorial, very clear explanation, you have a new subscriber now

  • @ndukwevictory1663
    @ndukwevictory1663 4 роки тому +1

    This has been helpful. Thanks bro!

  • @zainahmadchattha2177
    @zainahmadchattha2177 2 роки тому

    I watched your video and it was very helpful for me. Thanks a lot for making such informative videos.. and the method of explaining was good.

  • @abdulghaniahmedal-ameri3064
    @abdulghaniahmedal-ameri3064 3 роки тому

    Amazing and your explanation way is very simple
    thank you Boss

  • @GlenBucy
    @GlenBucy 5 років тому +1

    Great tutorial! Much appreciated!

  • @sachinadi88
    @sachinadi88 4 роки тому

    Nice... Keep up the good work👍👍👍

  • @jstov
    @jstov 5 років тому

    Thank you very much. You sir are a gentleman and a scholar.

  • @jclizardo
    @jclizardo 4 роки тому

    He podido seguir el procedimiento minuto a minuto. Su código ya esta especificado para PHP 7 por lo que no me dio errores en ningún momento. Llevo una semana tratando de implementar el sistema y siguiendo su vídeo lo pude implementar y adaptar a mis requerimientos en 2 días. Gracias.
    I have been able to follow the procedure minute by minute. Its code is already specified for PHP 7 so it did not give me errors at any time. I have been trying to implement the system for a week and following its video I was able to implement and adapt it to my requirements in 2 days. Thank you. (Google Translation).

  • @jarmanmanalang6793
    @jarmanmanalang6793 5 років тому +2

    Thank you very much! God bless

  • @fahadhafeez8086
    @fahadhafeez8086 4 роки тому

    Voice is so smooth.

  • @kailashbhujel7777
    @kailashbhujel7777 3 роки тому

    Great Tutorial. Happy Learning 😃

  • @boobalan4051
    @boobalan4051 4 роки тому

    Loved your way 💚

  • @udarasnsgm
    @udarasnsgm 3 роки тому

    thank bro...this was very helpful for my project !

  • @mdaziz4340
    @mdaziz4340 3 роки тому

    This Video was really helpful for me...Thank you soo much.

  • @beyonddnoyeb4519
    @beyonddnoyeb4519 2 роки тому

    your voice, so deep😭

  • @mithileshbhutada1277
    @mithileshbhutada1277 5 років тому

    Very Nice Explanation!

  • @luissevilla3558
    @luissevilla3558 3 роки тому

    You are a master I was looking for that

  • @88zpeedy
    @88zpeedy 2 роки тому +1

    Thank you sir! do u do paid lil gigs?

    • @phpBasics
      @phpBasics  2 роки тому +1

      Message me on skype: CoolEditz

  • @eamontdmas
    @eamontdmas 4 роки тому

    Top voice sir...

  • @blackbeauty-studios
    @blackbeauty-studios 4 роки тому

    Thanks very much for doing this tutorial it's helped me no ends. :)

  • @habeasventuresinc.9858
    @habeasventuresinc.9858 5 років тому

    LOVE the video!

  • @wei48221
    @wei48221 3 роки тому

    Nice. Thank you for this great tutorial.

  • @salmaloskin2660
    @salmaloskin2660 4 роки тому

    Shiit your so good on thiis ❤️

  • @SoftUche
    @SoftUche 2 роки тому

    i love your videos

  • @victor-ioncislari2375
    @victor-ioncislari2375 2 роки тому +1

    cool!

  • @huuvan4500
    @huuvan4500 4 роки тому

    great! thats all i want. thank u a lots

  • @SuperbDan
    @SuperbDan 3 роки тому

    When I click the Register Account verification, it only shows "The requested URL was not found on this server.". It did not execute the verify.php :(

  • @ceymendoza8236
    @ceymendoza8236 3 роки тому

    I liked it! Thank you

  • @thomassteindl9481
    @thomassteindl9481 4 роки тому +5

    for the lazy typers / copy/pasters here :)
    $headers .= "MIME-Version: 1.0" . "
    ";
    $headers .= "Content-type:text/html;charset=UTF-8" . "
    ";

  • @coffeecel
    @coffeecel 4 роки тому

    Very useful, thank you

  • @ujolmaharjan2010
    @ujolmaharjan2010 5 років тому

    It worked thaks bro .. god bless

  • @uramacademy6210
    @uramacademy6210 4 роки тому

    such a good toturial

  • @prasetiyot9480
    @prasetiyot9480 4 роки тому

    you're awsome. buddy! thks

  • @husseinhadliye2992
    @husseinhadliye2992 2 роки тому

    instead of declaring database in every file create one file to declare the database and call it in every file but thanks for your videos 👍

  • @aaravacts1481
    @aaravacts1481 3 роки тому

    Thank you sir ji🙏🏾🙏🏾🙏🏾

  • @jugemujugemu867
    @jugemujugemu867 5 років тому +3

    yeah great tutorial but ive gotta little problem
    Trying to get property 'num_rows' of non-object in C:\xampp\htdocs\verification\verify.php on line 10

    • @thispage7457
      @thispage7457 5 років тому

      yeah ive got the same problem toooo how to fix it

  • @maximkhrolenko4434
    @maximkhrolenko4434 4 роки тому

    Helpful!

  • @bebomohamed8860
    @bebomohamed8860 4 роки тому

    thanks very much

  • @anandtumma2827
    @anandtumma2827 4 роки тому

    nice video sir thank you

  • @mikeyells5353
    @mikeyells5353 5 років тому +1

    I followed and copied the code on this carefully but I find that the database activated status is being updated to being verified on sending of the email to the newly registered user, without the email link having to be clicked on. Does anyone else have this issue?

    • @phpBasics
      @phpBasics  5 років тому

      Hey Mike - It wouldn't be possible to update the verified flag when sending the email unless specifically coded to. If you'd like, I can look over your code.

    • @mikeyells5353
      @mikeyells5353 5 років тому

      @@phpBasics Thanks for your reply, very much appreciate that. Where can I post my code to. It's on a dev site and don't really want to throw url out there at the moment.

    • @phpBasics
      @phpBasics  5 років тому

      @@mikeyells5353 You can Skype me at CoolEditz or use pastebin

    • @mikeyells5353
      @mikeyells5353 5 років тому

      @@phpBasics Thanks. I'll sort out tomorrow. I'm in England and it's now late (yawn) night. Really do appreciate your help.

    • @mikeyells5353
      @mikeyells5353 5 років тому

      Hi.... just wondering if you've had a chance to look at the pastebin yet?

  • @ouralternate-history5672
    @ouralternate-history5672 3 роки тому +1

    Parse error: syntax error, unexpected identifier "VALUES"

  • @sayedhossain23
    @sayedhossain23 4 роки тому

    I do not see thankyou.php works in your video. Although I have typed all codes following you but unable to complete it as there is no thankyou.php ..

    • @phpBasics
      @phpBasics  4 роки тому

      The thankyou.php page is just an arbitrary page to re-direct the user to. It contains no PHP; just a page that says thank you. If you need further assistance, feel free to reach me on Skype: CoolEditz

  • @mohammadsalmankhan3169
    @mohammadsalmankhan3169 3 роки тому

    Thanks, but a question that you didn't provided your sending email password so how could it send email without verifying? Thanks again sir

  • @stefan4800
    @stefan4800 5 років тому

    Just a little note: if you use else if statement after checking if the username is long enough, it's pointless to append previous text for checking password, because if username isn't long enough it won't check the next statement. Instead, another if statement instead of else if will do the thing. Just a little note. ;) ua-cam.com/video/LXQfEFEfFcM/v-deo.html

  • @sssumirose4083
    @sssumirose4083 4 роки тому

    thank you sir

  • @padmabharathi7426
    @padmabharathi7426 4 роки тому

    thanks man

  • @msillah2505
    @msillah2505 5 років тому +2

    Yaw thanks for this amazing tutorial. I just have one problem and I will past the error message below.
    " Trying to get property 'num_rows' of non-object in C:\xampp\htdocs\web2
    egisteration form\verify.php on line 11"

  • @thog6007
    @thog6007 5 років тому +1

    When I do the login it says all the code with $mysqli-> in front of it. Does the tutorial work on the newer PHP versions?

  • @markjosephedep5116
    @markjosephedep5116 3 роки тому

    ThankYou

  • @yeshwanthallampati9460
    @yeshwanthallampati9460 5 років тому

    Thanks A Lot!

  • @user-ky1nz3ck2n
    @user-ky1nz3ck2n 4 роки тому

    Thank you for the video. Can you please make a video or explain how to auto verify an account without email verification or manual verification from the backend. I mean the system should automatically verify the new user account.

    • @phpBasics
      @phpBasics  4 роки тому

      What's the point of verification if it auto-verifies? You can simply leave out the verification altogether.

    • @phpBasics
      @phpBasics  4 роки тому

      @@RacoonCH - You can run a query against the database to see if that username already exists. If you need help, feel free to message me on Skype: CoolEditz

  • @vincentpaultags3010
    @vincentpaultags3010 5 років тому +1

    We have a capstone project and we need to do a email verification

  • @senju31
    @senju31 3 роки тому +1

    Could you provide the code for this via Github or Google Drive?

  • @iliyarh
    @iliyarh 3 роки тому

    thanks :)

  • @kurus1777
    @kurus1777 4 роки тому +1

    How you fix this syntax problem? I can’t do it...

    • @ajay6057
      @ajay6057 4 роки тому +1

      That was just a semicolon ( ; ) error on line 29 provide the text with double quote to end the string and ; to end the statement.
      Here it is:
      what's in the video-----> echo "x y z
      what to edit-------> echo "x y z ";
      That's it it works well

    • @kurus1777
      @kurus1777 2 роки тому

      @@ajay6057 Thank you haha

  • @littlebitprogrammer778
    @littlebitprogrammer778 4 роки тому

    Not working for me:`(
    does 'send email from localhost' videos all settings required for this process, or i should reset those files as default settings,,,

  • @qkarendazsteve2471
    @qkarendazsteve2471 5 років тому +2

    i followed everything but my mail is not sending......

    • @phpBasics
      @phpBasics  5 років тому

      Did you watch the video on how to setup email from localhost?

    • @qkarendazsteve2471
      @qkarendazsteve2471 5 років тому

      @@phpBasics i watched only this one

  • @martinchege8487
    @martinchege8487 5 років тому

    this code is not updating becose am working from my domain
    what do i replace ($resultset->num_rows == 1) with so that it can update
    if($resultset->num_rows == 1){
    //validate the mail by updating the database
    $update=mysqli_query($link,"UPDATE users SET verified = 1 WHERE vkey = '$vkey' LIMIT 1");

    if($update){
    echo"Your account has been verified sucessifuly. You may now log in";
    }else{
    echo $mysqli->error;
    }

  • @rythm4964
    @rythm4964 2 роки тому

    When I send people to my verify page with the vkey in the link I get error that "The requested URL was not found on this server."

  • @petulienocka
    @petulienocka 3 роки тому

    Are you not using password_verify ? Can you explain why not, and if you would use it with password_hash, how would you implement it ?

    • @phpBasics
      @phpBasics  3 роки тому +1

      Hi, I have a video on password_hash. If you need assistance, you can reach me on Skype: CoolEditz

  • @mohammedhusain6446
    @mohammedhusain6446 2 роки тому

    I got error smtp server response 530 5.7.0 must issue a starttls command first..i cant resolve it its annoying

  • @mr.george5370
    @mr.george5370 3 роки тому

    I couldn't really sent an email from localhost.... how can I do that??? I tried other configurations but no lock! ??? :X

  • @javaholiday
    @javaholiday 5 років тому +2

    could you please make this PHP Registration w/ Email Verification in PDO version

  • @rimeschool2200
    @rimeschool2200 3 роки тому

    I DID EXACTLY what you did,but when i submit the form,it just reloads and nothing happens

  • @rishavtewary6239
    @rishavtewary6239 3 роки тому

    "Warning: Attempt to read property "num_rows" on bool in C:\xampp\htdocs
    egistration\verify.php on line 9
    This is invalid" why is it showing this in my verify.php file?

    • @phpBasics
      @phpBasics  3 роки тому

      More than likely a syntax error.

  • @idaberthejuru2498
    @idaberthejuru2498 2 роки тому

    The video is well detailed but it's not working for me.

  • @officialsatisfyingvids8296
    @officialsatisfyingvids8296 2 роки тому

    How can send in form of OTP verification to user that signup on my website??

  • @superagucova
    @superagucova 3 роки тому

    Everyone should be warned that this video introduces a severe SQL injection vulnerability around 12:30, which means any app coded with this method IS vulnerable and probably can be exploited to take full control of your database.
    This can be solved by properly escaping the user-submitted input.
    The author should correct the video or delete it.

  • @-PhilGibson
    @-PhilGibson 4 роки тому

    i followed a 2hr tutorial and got it working. but with your 15min login and this 20min registration/email verify tutorials i cant get either working!!!

  • @MYSTICKNIGHT23
    @MYSTICKNIGHT23 5 років тому

    Help on the verify.php I entered word from word of your code however it skips the code and just says something went wrong. If I can email you my code could you tell me what I’ve done wrong. I retraced my steps and went very slowly .

  • @imrulkayes6698
    @imrulkayes6698 4 роки тому

    Notice: Trying to get property 'num_rows' of non-object in C:\xampp\htdocs\messenger\verify.php on line 7

    • @phpBasics
      @phpBasics  4 роки тому

      You probably didn't put the $ in front of the variable.

  • @PyroCyclone-old
    @PyroCyclone-old 2 роки тому

    How would i program an email account?

  • @tienattr8227
    @tienattr8227 3 роки тому

    Hello Sir, I have a problem that i don't see any mail. Please, help me.

  • @thomassteindl9481
    @thomassteindl9481 4 роки тому

    I´m using pdo and got the error message "PDOStatement: Field 'verified' doesn't have a default value" (and got another one saying field vkey needs a default value too). I set null for vkey and 0 vor veriefied. when saving first user, vkey gets updated with the key. everything´s fine then. thanks!

    • @phpBasics
      @phpBasics  4 роки тому +1

      I believe you need to establish default variables in PHPMyAdmin.

  • @karlervinlupaz6805
    @karlervinlupaz6805 4 роки тому

    i manage to send me some confirmation but i cant continue through the verification when it comes to me loggin in. :(

  • @titikshaarti5600
    @titikshaarti5600 4 роки тому

    Sir, how to specify the domain of the email.