Тёмный

Complete PHP Registration w/ Email Verification 

PHPBasics
Подписаться 8 тыс.
Просмотров 120 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 273   
@icaras12x87
@icaras12x87 5 лет назад
Your soothing voice and clear instructions make this tutorial the best out there. Thank you for this sir you are great
@JamesAutoDude
@JamesAutoDude 4 года назад
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!!!
@Cyber99221
@Cyber99221 4 года назад
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 ?
@thalia4045
@thalia4045 5 лет назад
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!
@ShawnRitch
@ShawnRitch Год назад
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.
@gibbsj69
@gibbsj69 2 года назад
really like this channel. sean has a great voice and should be doing voice overs as a side hustle.
@ilovechinesefood4312
@ilovechinesefood4312 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.
@phpBasics
@phpBasics 2 года назад
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.
@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!
@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 лет назад
Hi Ray. I have quite a bit of new and exciting material to cover. Videos coming very soon.
@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
@logireloco123
@logireloco123 4 года назад
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
@joshuahall6337
@joshuahall6337 4 года назад
This is the first effective tutorial I've watched that provides an email verification system. It worked BTW, god bless!
@LaurinusPonpon
@LaurinusPonpon 3 года назад
Awesome work ! I integrate that to my project and it's working like a charm.
@Edward-bm7vw
@Edward-bm7vw 3 года назад
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 года назад
@@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
@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.
@NickKarm
@NickKarm 3 года назад
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!
@abdulghaniahmedal-ameri3064
@abdulghaniahmedal-ameri3064 3 года назад
Amazing and your explanation way is very simple thank you Boss
@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
@maxklevebrand2640
@maxklevebrand2640 4 года назад
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 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--7JdLn5gOfg.html
@esofialo23
@esofialo23 5 лет назад
Works perfectly, thank you :D
@uptaker3215
@uptaker3215 4 года назад
this was awesome! it worked very well for me
@alseynidiop8650
@alseynidiop8650 3 года назад
You are great, thank you. Clear voice and nice explanations.
@sachinadi88
@sachinadi88 4 года назад
Nice... Keep up the good work👍👍👍
@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 :(
@ndukwevictory1663
@ndukwevictory1663 4 года назад
This has been helpful. Thanks bro!
@brnheavymetal
@brnheavymetal 4 года назад
Great tutorial, very clear explanation, you have a new subscriber now
@rafaelbarreto2658
@rafaelbarreto2658 5 лет назад
Wow you have the gift of teaching! Thank you very much. God bless you!
@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).
@mdaziz4340
@mdaziz4340 3 года назад
This Video was really helpful for me...Thank you soo much.
@udarasnsgm
@udarasnsgm 3 года назад
thank bro...this was very helpful for my project !
@kailashbhujel7777
@kailashbhujel7777 3 года назад
Great Tutorial. Happy Learning 😃
@GlenBucy
@GlenBucy 5 лет назад
Great tutorial! Much appreciated!
@jstov
@jstov 5 лет назад
Thank you very much. You sir are a gentleman and a scholar.
@beyonddnoyeb4519
@beyonddnoyeb4519 2 года назад
your voice, so deep😭
@blackbeauty-studios
@blackbeauty-studios 5 лет назад
Thanks very much for doing this tutorial it's helped me no ends. :)
@luissevilla3558
@luissevilla3558 4 года назад
You are a master I was looking for that
@wei48221
@wei48221 4 года назад
Nice. Thank you for this great tutorial.
@fahadhafeez8086
@fahadhafeez8086 4 года назад
Voice is so smooth.
@mithileshbhutada1277
@mithileshbhutada1277 5 лет назад
Very Nice Explanation!
@ouralternate-history5672
@ouralternate-history5672 3 года назад
Parse error: syntax error, unexpected identifier "VALUES"
@jarmanmanalang6793
@jarmanmanalang6793 5 лет назад
Thank you very much! God bless
@jugemujugemu867
@jugemujugemu867 5 лет назад
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
@88zpeedy
@88zpeedy 2 года назад
Thank you sir! do u do paid lil gigs?
@phpBasics
@phpBasics 2 года назад
Message me on skype: CoolEditz
@phpBasics
@phpBasics 5 лет назад
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 года назад
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. ;)
@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."
@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
@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; }
@salmaloskin2660
@salmaloskin2660 4 года назад
Shiit your so good on thiis ❤️
@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
@habeasventuresinc.9858
@habeasventuresinc.9858 5 лет назад
LOVE the video!
@ceymendoza8236
@ceymendoza8236 4 года назад
I liked it! Thank you
@mohammedhusain6446
@mohammedhusain6446 3 года назад
I got error smtp server response 530 5.7.0 must issue a starttls command first..i cant resolve it its annoying
@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 👍
@SoftUche
@SoftUche 2 года назад
i love your videos
@eamontdmas
@eamontdmas 4 года назад
Top voice sir...
@huuvan4500
@huuvan4500 4 года назад
great! thats all i want. thank u a lots
@victor-ioncislari2375
@victor-ioncislari2375 2 года назад
cool!
@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
@coffeecel
@coffeecel 4 года назад
Very useful, thank you
@idaberthejuru2498
@idaberthejuru2498 2 года назад
The video is well detailed but it's not working for me.
@senju31
@senju31 3 года назад
Could you provide the code for this via Github or Google Drive?
@officialsatisfyingvids8296
@officialsatisfyingvids8296 2 года назад
How can send in form of OTP verification to user that signup on my website??
@rimeschool2200
@rimeschool2200 3 года назад
I DID EXACTLY what you did,but when i submit the form,it just reloads and nothing happens
@phpBasics
@phpBasics 3 года назад
Skype: CoolEditz
@prasetiyot9480
@prasetiyot9480 4 года назад
you're awsome. buddy! thks
@vincentpaultags3010
@vincentpaultags3010 5 лет назад
We have a capstone project and we need to do a email verification
@-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 .
@tienattr8227
@tienattr8227 3 года назад
Hello Sir, I have a problem that i don't see any mail. Please, help me.
@kurus1777
@kurus1777 4 года назад
How you fix this syntax problem? I can’t do it...
@ajay6057
@ajay6057 4 года назад
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 3 года назад
@@ajay6057 Thank you haha
@ujolmaharjan2010
@ujolmaharjan2010 5 лет назад
It worked thaks bro .. god bless
@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 года назад
Hi, I have a video on password_hash. If you need assistance, you can reach me on Skype: CoolEditz
@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,,,
@PyroCycloneArchive
@PyroCycloneArchive 2 года назад
How would i program an email account?
@thog6007
@thog6007 5 лет назад
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?
@zielonykociak3645
@zielonykociak3645 5 лет назад
Same problem. Can you answer.. @phpBasics? :)
@msillah2505
@msillah2505 5 лет назад
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"
@lukaboahn5860
@lukaboahn5860 5 лет назад
me too. Do you have a fix?
@MYSTICKNIGHT23
@MYSTICKNIGHT23 5 лет назад
Same
@mohamedcherifboussoura2718
@mohamedcherifboussoura2718 3 года назад
The solution is : You made an error in the SELECT .... Just verified.
@titikshaarti5600
@titikshaarti5600 4 года назад
Sir, how to specify the domain of the email.
@mikeyells5353
@mikeyells5353 5 лет назад
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?
@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.
@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 года назад
I believe you need to establish default variables in PHPMyAdmin.
@uramacademy6210
@uramacademy6210 4 года назад
such a good toturial
@aaravacts1481
@aaravacts1481 4 года назад
Thank you sir ji🙏🏾🙏🏾🙏🏾
@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
@karlervinlupaz6805
@karlervinlupaz6805 4 года назад
i manage to send me some confirmation but i cant continue through the verification when it comes to me loggin in. :(
@maximkhrolenko4434
@maximkhrolenko4434 4 года назад
Helpful!
@qkarendazsteve2471
@qkarendazsteve2471 5 лет назад
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
@javaholiday
@javaholiday 6 лет назад
could you please make this PHP Registration w/ Email Verification in PDO version
@joosep2990
@joosep2990 4 года назад
I don't get vkey to db. How to fix?
@gauravmazumdar9965
@gauravmazumdar9965 4 года назад
Isn't there any other way of form validation?? Suppose we have 50+ fields in a form.. so we have to put validation on each field to check whether it is empty or not or the character length is correct or not. This will make the code lengthy
@phpBasics
@phpBasics 4 года назад
Try this! function validateReg($username,$password,$verPassword,$email) { $argNum = func_num_args(); for($x=0;$xerrors[] = "All fields are required."; break; } }
@berhanubaye2867
@berhanubaye2867 4 года назад
Verify.php is not working. It says "trying to get property of non-object in C:\...". Can you tell me something sir?
@phpBasics
@phpBasics 4 года назад
Did you get it figured out? Skype: Cooleditz
@bebomohamed8860
@bebomohamed8860 4 года назад
thanks very much
@Khapa123
@Khapa123 4 года назад
very usefull vedio and I have one question how can I set payment gate way with this form.
@phpBasics
@phpBasics 4 года назад
I'm not sure what you mean.
@Khapa123
@Khapa123 4 года назад
sir if I want to add payment gateway wich can rederect to the acknolegement page after successfull payment then what will be the procedure?
@Khapa123
@Khapa123 4 года назад
@@phpBasics sir if I want to add any payment gateway which can be rederect to the acknoledgement page with transuction id , name then what will be the procedure?
@phpBasics
@phpBasics 4 года назад
@@Khapa123 You would need to use sessions to store the data between pages.
@anandtumma2827
@anandtumma2827 4 года назад
nice video sir thank you
@ismailaayar7809
@ismailaayar7809 4 года назад
its not working for me bcz of smtp server . how i can have one ?
@andreas_tech
@andreas_tech 2 года назад
hey, do I need a mail server, to be able to use this? I mean, for sending emails to new users, that registered.
@phpBasics
@phpBasics 2 года назад
I have a video that shows how to set up sendmail for Gmail and Yahoo. You cannot send directly from localhost without a registered domain, so those you need an SMTP relay like Gmail.
@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.
@marvellousruni8475
@marvellousruni8475 2 года назад
Is there any need to include a timer i.e time set for the link sent?
@phpBasics
@phpBasics 2 года назад
You might want the link to expire after a certain length of time. In that case, yes.
@padmabharathi7426
@padmabharathi7426 4 года назад
thanks man
@davidsondavid4988
@davidsondavid4988 4 года назад
i created the thank you page , but still i didn't receive any any email.. my mail box is still empty where
@phpBasics
@phpBasics 4 года назад
skype: CoolEditz
@davidsondavid4988
@davidsondavid4988 4 года назад
you want me to skype you
Далее
Скинь той самой ❤️‍🔥
00:15
Просмотров 17 тыс.
PHP Regular Expressions Form Security & Validation
12:32
Inline editing with Jquery/PHP/MySQL
32:03
Просмотров 13 тыс.
PHP - PDO Prepared Statements
9:49
Просмотров 13 тыс.
Sending OTP SMS in PHP from localhost using textlocal
14:30
Custom PHP log files
6:56
Просмотров 18 тыс.