28 | Let's Create A Signup System in PHP! | 2023 | Learn PHP Full Course for Beginners

Поділитися
Вставка
  • Опубліковано 1 чер 2024
  • In this PHP tutorial you will learn how to create a signup system in PHP, by using all we have learned up until now! You will also learn about error handlers, MySQL databases, security basics, the MVC pattern, and how to show error messages to the user. 🙂
    ➤ LINKS
    My OOP PHP Course: • 1: Introduction To OOP...
    ➤ CHAPTERS
    00:00:00 - Introduction
    00:02:51 - You will learn about the MVC pattern...
    00:04:30 - The HTML you need to have ready!
    00:06:09 - The Users database table!
    00:07:15 - Connecting to your database
    00:12:41 - Session config file
    00:19:58 - Creating our signup.inc.php file
    00:24:26 - Creating our model, view, and controller files
    00:29:32 - Signup error handlers
    00:52:57 - Show error messages to your users
    00:58:20 - Signup our users if no errors
    01:03:23 - Show signup success message to your users
    01:04:56 - (Fixing an error)
    01:05:23 - Testing our Signup system
    01:06:33 - Keeping the form data, if the user made an error
    ➤ GET ACCESS TO MY LESSON MATERIAL HERE!
    First of all, thank you for all the support you have given me!
    I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
    I am now using Patreon and UA-cam Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.
    I hope you will find it helpful :)
    Memberships: / @dani_krossing
    Patreon: / mmtuts

КОМЕНТАРІ • 201

  • @Dani_Krossing
    @Dani_Krossing  10 місяців тому +12

    LESSON MATERIAL:
    If you got any errors and need my personal files to compare with, you can find a link for all my available lesson files in the bottom of the description. 🙂

    • @nelsonke6840
      @nelsonke6840 10 місяців тому +1

      How can I be like you 😭😭

    • @Dani_Krossing
      @Dani_Krossing  10 місяців тому +30

      @@nelsonke6840 It's simple! Learn one new thing every day, and by day 365 you will have learned 365 new things. 🙂 Learn two new things a day, and you'll know twice that.
      That's the simple rule I go by, to not let new knowledge overwhelm or demotivate me. ☺ One step at a time, and eventually you'll reach your destination.

    • @Elizabethomo
      @Elizabethomo 6 місяців тому +1

      I can't find it

    • @ViniciusPereira-po2el
      @ViniciusPereira-po2el 5 місяців тому +1

      Look, I didn't understand correctly, but if your intention was to make a link available to everyone, including non-paid subscribers, there is no link in the description

    • @ViniciusPereira-po2el
      @ViniciusPereira-po2el 5 місяців тому

      by the way excellent material thank you

  • @AgenceWebSigma
    @AgenceWebSigma 2 місяці тому +8

    This lesson is difficult, but I don't think any teacher can teach better than you did. Thanks a lot for your efforts!!

    • @informationage8623
      @informationage8623 21 день тому

      True true, well said. The guy is legendary on point. I can't find any other guy more suitable than him to teach this difficult lesson. His way of thinking logically even in terms of the security of the system, and the way he has introduced the MVC is top-notch. His way of coding is unique even in terms of organizing the code flawlessly. A thing rare to find on other tutorials. I have learned a lot from him. I will keep repeating the tutorials and perfecting my code skills until I become a master in PHP then move to the framework (Laravel).

  • @seenixa9082
    @seenixa9082 5 місяців тому +11

    Don't usually comment on youtube, but I'm pretty sure you just saved a subject for me this semester.
    I've no idea if I would've been able to complete my university assignment on time if I don't find your series.
    Thank you! Thank you a lot!

    • @markhinds2571
      @markhinds2571 2 місяці тому +2

      same, man's saved my advanced database module

  • @Sweetcommando
    @Sweetcommando Місяць тому +2

    yooo thank you so much for this. I love when the tutor shows you how to do things in real time, even if it takes a while. I love the patience

  • @mrdeveloper6636
    @mrdeveloper6636 4 місяці тому +2

    I'm learning PHP for build my career in Tech industry. And I found you Dani.. Your way to teach is so good!
    Thanks Man!!

  • @samnako
    @samnako 10 місяців тому +7

    Daniel, i woke up this morning thinking something to myself. Your present set of tutorials are BETTER than the series you did in about 5years ago.
    Why is it so? I can not tell. I earnestly wait to see the next these days. Keep it up please. Thanks alots

  • @akashgola2153
    @akashgola2153 2 місяці тому +1

    I was so hyped for this project and now that i did it i can see how many new things i learned and got a very good idea of how the actual signup may work. Marvelous upload Dani 🔥🔥

  • @Drazyhaze
    @Drazyhaze 4 місяці тому +2

    Brother. Best PHP videos i've found. Outstanding.

  • @PicSta
    @PicSta 10 місяців тому +3

    What a great tutorial. At first well explained, super easy and good to follow because at the right pace. Compared to your two previous login systems in PHP, this one is even better, don't get me wrong, your previous tutorials also been great. With that said, I can't await part 2 coming out, and please keep up the good work. Have a great day, Daniel.

  • @PmkooOfficial
    @PmkooOfficial 3 місяці тому +2

    Thank you so much for this course! I can't express how grateful I am to you for helping me overcome my initial hesitation with PHP. Thanks to your clear explanations and thorough guidance, I finally feel like I'm starting to grasp more and more. Your efforts have made a huge difference in my learning journey. Looking forward to diving deeper into PHP and expanding my understanding even further. Keep up the amazing work! 🚀👏
    Additionally, I've signed up for your Patreon to support your fantastic work even further! 🌟

  • @chriseski
    @chriseski 6 місяців тому +3

    What an amazing tutorial Dani! I really appreciate the fact that you explain even the simplest thing over and over again, using almost the same words every time, as if you try to explain something simple to a child. Nothing is taken for granted even after having explained something 2 or 3 times already, or even in a previous video of the series. Repetition is what makes something concrete in our brains, and you do this the best way possible IMO! Thank you very much! 👌💪

  • @user-bf8qr6ms7m
    @user-bf8qr6ms7m 7 місяців тому +1

    you're a legend man, thank you for this incredible course!

  • @kwabenalloyd
    @kwabenalloyd 7 місяців тому +2

    You teach way better. Stay blessed.

  • @nayeongo8490
    @nayeongo8490 5 місяців тому +1

    This is AMAZING!!!!!!!! WOW! You are an amazing teacher and programmer! Thank you very very very much!!!

  • @mohammedsalmi2373
    @mohammedsalmi2373 8 місяців тому +2

    Best tutor ever ! much thanks from Morocco.

  • @mmelimahlobo7656
    @mmelimahlobo7656 10 місяців тому +2

    Thanks Daniel for gracing us with another great tutorial😊

  • @bikebrainstudio
    @bikebrainstudio 6 місяців тому +2

    Wooo! Got in working after whole day of searching for errors. Gonna drunk myself now :-D

  • @user-eo1qm9ch5w
    @user-eo1qm9ch5w 10 місяців тому +2

    THANK YOU FOR THIS TUTORIAL! THIS HELP ME TO CREATE A SYSTEM. All of the small information I wrote in down.

  • @rpralica
    @rpralica 8 місяців тому +2

    Dani's tuts are way better than any on Udemy. Thanks Dani for everything.

  • @jvoynar5826
    @jvoynar5826 10 місяців тому +1

    Wow, this is great! Cheers from Baltimore.

  • @kasunkumarasinghe6365
    @kasunkumarasinghe6365 10 місяців тому +2

    You are the best Dani... Thank you..

  • @basilistigris640
    @basilistigris640 10 місяців тому +1

    thank you for new 2023 php raw and simply lessons, i can wait for more projects with no frameworks that are very complex, please make a more just MVC and no OOP and complexity, you are very well explain every think, perfect php series, liked and follow!

  • @royrajput150
    @royrajput150 4 місяці тому

    Keep making these Dani - you're doing great

  • @danwaterloo3549
    @danwaterloo3549 10 місяців тому +1

    excellent! thank you!

  • @nunogoncalini6064
    @nunogoncalini6064 10 місяців тому +2

    Great job and amazing tutorial!
    If you are thinking about a login system next i would love one that uses a role on the sessions in order to unlock some content of the webiste if you are a admin, a normal user etc. Keep it up!

  • @bitcoinbunker
    @bitcoinbunker 10 місяців тому +5

    Thanks for sharing this Dan. Your instructional videos are the best. I’ve learned so much from coding along with you 👌

  • @achmaliki8389
    @achmaliki8389 8 місяців тому

    What an tutorial, great explanation ofc, really enjoy and learn a lot from this, even I need create my own HTML and CSS but worth to watch

  • @getoverhere1225
    @getoverhere1225 10 місяців тому +1

    Thank you very much. I will definitely be checking out part two. But I do have a request can you do a video that goes along with this where you can add forgot email or password options.

  • @HOW-bt3et
    @HOW-bt3et Місяць тому +1

    Perfect🤙🏽

  • @it9hektar
    @it9hektar 10 місяців тому +1

    excellent! thank you from indonesia 👍

  • @sonamohialdin3376
    @sonamohialdin3376 10 місяців тому

    Very helpful tutorial thank you

  • @theb00geyman69
    @theb00geyman69 4 місяці тому

    Your PHP tutorial is amazing. I am learning so much. I hope you will create a tutorial for laravel someday!

  • @RuanHigor
    @RuanHigor 9 місяців тому +1

    thanks my friend

  • @Me_Shadow
    @Me_Shadow Місяць тому +1

    amazing

  • @user-ji1bz3hy2e
    @user-ji1bz3hy2e 5 місяців тому +1

    Love the series, helped me alot. I did find a mistake tho... 47:05 the query needs to take all the emails form users and not the usernames.

  • @WarlordEnthusiast
    @WarlordEnthusiast 10 місяців тому +3

    This reminds me of why I hated PHP in college, very good tutorial and very informational.

  • @SFL1484
    @SFL1484 16 днів тому

    Great course. You should have a UDEMY course. Nice Job Dani.

  • @yomegram6721
    @yomegram6721 10 місяців тому

    Thanks Dani. I’m a big student of urs

  • @felixkuluchumila5262
    @felixkuluchumila5262 5 місяців тому +4

    I'm gonna watch this video ten times , its so important, i gotta master all these!

  • @IEmirovic
    @IEmirovic 10 місяців тому

    Great example but a little bit confusing. I need to watch it again. Thanks Dani. Are you considering preparing a laravel tutorial?

  • @mikail1026
    @mikail1026 6 місяців тому

    You're the best teacher Dani. We need Laravel course

  • @s.m.juwelbd7075
    @s.m.juwelbd7075 10 місяців тому +1

    good Video

  • @ghcybertech
    @ghcybertech 10 місяців тому +1

    You are good❤❤❤❤

  • @AxxionMarketPlace-iu6ri
    @AxxionMarketPlace-iu6ri 9 місяців тому

    Thank you

  • @hindihits9260
    @hindihits9260 5 місяців тому

    great video! I was surprised by how much you have thought about implementing a robust system. This is easily production ready code. Thank you for teaching :)

    • @Dani_Krossing
      @Dani_Krossing  5 місяців тому +1

      Thank you. ☺ It is not production ready code though. 🙂 There are much missing in terms of error handling, and hack prevention. But it's a good video for learning the basics .

    • @hindihits9260
      @hindihits9260 5 місяців тому +1

      @@Dani_Krossing at least it's better than what I have found in other tutorials.

  • @GerritforBazeja
    @GerritforBazeja 10 місяців тому

    Love you!
    Nice to learn the saver way of data handling from you!
    Question:
    * Why not repaet password as you did in the earlier course?
    * can you show how to do it with the radio_button?!

  • @yousifky
    @yousifky 10 місяців тому

    Thanks dani ❤

  • @ArtOlson2008
    @ArtOlson2008 7 місяців тому

    I've learned alot from this video, but I think it is unnecessarily advanced in the way it builds up all of the security, errors, exceptions and supporting files. While these are all implementations a beginner may come across this is hardly accessible to a beginner when the most basic functional password validation is nested in 7 supporting files.

  • @akaza7613
    @akaza7613 10 місяців тому +1

    ❤ thanks

  • @deezee1414
    @deezee1414 10 місяців тому +1

    Will you ever make a tutorial about API's as an additional tutorial next to PHP? For posts, comments, etc

  • @yomegram6721
    @yomegram6721 10 місяців тому

    Please when is the login episode coming up. Really appreciate your works so far

  • @CoderzF1
    @CoderzF1 10 місяців тому

    here i am a few days later having finally finished the video...lol... i had to break it into parts due to other stuff. havent watched the next video yet if its out.... have you checked the code yet for checking email already registered. i remember a variable not being changed when checking this part

  • @skillz3501
    @skillz3501 10 місяців тому +3

    Can you do a 2023 update for a login system and forgot password? Love your vids btw really helpful. Thanks

  • @techyjc
    @techyjc 9 місяців тому

    Another great video, just an observation might be worth mentioning filter_var($email, FILTER_VALIDATE_EMAIL, FILTER_FLAG_EMAIL_UNICODE) as it supports email addresses with characters from other languages. Otherwise some addresses with foreign language characters would return false.

  • @PieroDelCastillo-sw4zw
    @PieroDelCastillo-sw4zw Місяць тому

    Hello Dani, great job, may i ask if you are using a php formatter in vscode? and how to configure it, cause ive having trouble with it, greetings from Peru

  • @dconnectzone
    @dconnectzone 10 місяців тому

    It was so helpful! I'm creating admin panel for my project. It would be nice if you made video about using volley php and creating profile picture setup. Or at least video on php creating profile picture setup. I'm trying to create android app and inside fragment_userprofile I wanted to let user set picture for profile but getting stuck as It was my first time doing volley php project.

  • @LokaiOFF
    @LokaiOFF 10 місяців тому

    Hey i have built website with your login system, and its amazing, not this one, i have watched the one that is a year older but still amazing work, but could you do forgotten password recovery in OOP PDO PHP kind of stuff? I tried to find something on the internet and theres nothing, because you know i think o lot of people have built a login system based on that video, and video you have on your profile doesnt seem to continue on the logic you have implemented in that year old one, so i would really apreciate it! :D

  • @krazy_kzir
    @krazy_kzir 4 місяці тому

    hey Dani, ur videos were a great help but can i know how to do things like password strength checker, limited password attempts and even using google captcha features.

  • @AViStudioMoldova
    @AViStudioMoldova 10 місяців тому

    Hi my teacher! Very interesting video. But can you make another video for this signup/login system using PHP OOP and JS in frontend? P.S: I'm the one of that guys that are adept of OOP

  • @regimatic
    @regimatic Місяць тому

    @regimatic
    0 seconds ago
    I watched this twice. I think you went from crawling to running without learning how to walk. I watched and performed all the previous 27 lessons. This is over my head. You got into object oriented programming (I guess): arrays within PDOs, methods, sessions, try-catch, MBC-model, etc. I think I needed another 10 lessons to truly understand this. To use this on a project, I'd have to paste your code and pray... because I couldn't duplicate a custom effort. I wish you would have just showed us how to do it as procedures. I though I learned something with lesson 1-27 (and I did), but now think I need something in between lesson 27 and lesson 37. I TRUELY like our training, but am lost here.

  • @bartroels5980
    @bartroels5980 Місяць тому

    great tutorial!! only 1 problem, does not work when I use the 2 ini_set()... statements :-/ When I discart them it works but it is less secure I presume?

  • @NekoNekonoTabiTabi
    @NekoNekonoTabiTabi 25 днів тому

    25:31 question about this part, after following the tutorial and achieving success of bringing my data onto the database, I've noticed that my username and password is set to "root" and blank respectively. after i moved my declaration after the request_once portion it's now working perfectly, any reasons to why this happens?,

  • @user-jj4ej3hu3d
    @user-jj4ej3hu3d 2 місяці тому

    Hi Dani I really appreciate the tutorials. I have gone through this tutorial line by line using your lesson files. For some reason the query on the login_model.inc.php is not returning data when I have it echo the results....just get the word Array with no data.. It says I am logged in successfully, but I'm not getting error returned if I leave out something, and it is not returning the :"logged in as" when I successfully log in. Also when I try to echo $_SESSION variables I get not return. Any suggestions

  • @rudratahsin2601
    @rudratahsin2601 10 місяців тому

    Can you please make a playlist on bootstrap or tailwind on a PHP based website. Raw CSS is very hard.

  • @x7khalid
    @x7khalid 10 місяців тому

    When I try using the session config my php didn't work on host ip address but it's work when I use localhost
    Is it good to make 'domain' => $_SERVER['SERVER_ADDR'] ??

  • @Snnupy1
    @Snnupy1 10 місяців тому

    I was wondering if you are planning to create something a bit more complex? To work with Laravel in MVC model?

    • @Dani_Krossing
      @Dani_Krossing  10 місяців тому +2

      Yes, I have planned to make a few “Laravel for beginners” videos, once I have wrapped some of my existing ongoing videos in a neat bow tie 🙂

  • @DW23341
    @DW23341 10 місяців тому +1

    Good Video, any Chance you could do this Video again but with the MVC Model?

    • @Dani_Krossing
      @Dani_Krossing  10 місяців тому

      I have a "OOP PHP login system" tutorial on my channel, which shows this 🙂

  • @meglolethio3443
    @meglolethio3443 6 місяців тому

    Mr. daniel i use php file and when i try to use font awesome or another icon it not show up on live server what shoud i do ?

  • @Sweetcommando
    @Sweetcommando Місяць тому +1

    Just a heads up, if anyone has any errors along the way, it is 99% a simple typo. I spent almost an hour trying to figure out why the error handlers don't work and its because I wrote config.session.inc.php instead of config_session.inc.php lmao

  • @CoderzF1
    @CoderzF1 10 місяців тому +1

    lol.... im at time stamp 24:42 and already see some refactoring that i would personally do. Just a habit of mine from coding in kotlin and java for a few years now.

    • @CoderzF1
      @CoderzF1 10 місяців тому +1

      also, meant no disrespect. Just the code organizer in me would have arranged those if statements in a different manner. you're good at what you do.

    • @Dani_Krossing
      @Dani_Krossing  10 місяців тому

      @@CoderzF1Personally I had just used a exit() function and not used a else statement. 🙂 But when recording at the same time, the brain unfortunately oversees that type of details hehe.

  • @nyendwa
    @nyendwa 2 місяці тому

    Hy @Dani_Krossing At 57:27 I am getting this error "Connection failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)" what am i doing wrong?

  • @rolandlawrence2654
    @rolandlawrence2654 3 місяці тому +1

    Dani, I agree with all the people stating about your teaching abilities. I saw your last message which stated about you getting a job and going to work. That is definitely our loss. I do have one question which I hope you can answer for me. Since I am working with WordPress, I cannot use index.php. What would you recommend I use instead? I definitely appreciate your feedback. Thanks.

    • @Dani_Krossing
      @Dani_Krossing  3 місяці тому

      Thanks for the kind words 😊
      If you are referring to creating a login system, then it is very important to point out that the one I teach in this video, is not a production ready login system. It is simply a lesson to get people used to using PHP. 🙂
      If you use Wordpress, then I recommend investing in a up-to-date login system plugin.
      Other solutions that are typically used IRL, is a framework like Laravel, since it has security build into it.
      My point is, that creating something as important as a login system, which requires TOP NOTCH security, should not be build from ground up… unless you are an expert in PHP security. Most professionals use frameworks and other tools, since features like this already exist, which are better than anything we can make ourselves. 🙂

  • @thatEkeminii
    @thatEkeminii 6 місяців тому

    Is it a must to add the db.sql file in vscode editor ? If not why did you put it there - was it just for explanation purposes ? 😭

  • @peaceaigbor2954
    @peaceaigbor2954 7 місяців тому

    How do i fix that error, you said to remove the form input fields and create a function. I did everything you did. But when i click submit on my form page i get an error. How do i fix it pls

  • @MuhammadSiddique-uv1ld
    @MuhammadSiddique-uv1ld 10 місяців тому

    Please make video on Login system also I am waiting

  • @samstephens3946
    @samstephens3946 4 місяці тому +1

    Hi all, 👋 I know it's probably beyond the scope of this tutorial but is anyone having issues with the "check_signup_errors()" when using Safari. It all works perfectly in Chrome etc etc but the _SESSION isn't returning the error data to the index.php page when using Safari it only returns the 'last_regeneration' when var_dump'd/print_r'd. As I say all works perfectly in Chrome just wondered if anyone had similar issues when using Safari. (and maybe a cheeky link for a solution 😁) Many thanks for the Tutorials Playlist Dani a lot of effort must have gone into making this.

    • @taylorchou9812
      @taylorchou9812 Місяць тому

      i can't show error message in any browser, I am still trying to find where I did wrong...

  • @jason1600
    @jason1600 9 місяців тому +1

    我愛老高

  • @ckh8217
    @ckh8217 10 місяців тому

    I think you can skip the bindParam and put an associative array in the execute, like so:
    $stmt->execute([':username' => $username]);

    • @Dani_Krossing
      @Dani_Krossing  10 місяців тому

      Yes you can. 🙂 But it comes with some “drawbacks” as well. Or rather “features you can’t do”. But in this example here either way is perfectly fine.

  • @wq23esdc
    @wq23esdc 8 місяців тому

    Hey man, great tuts, but i tried to pay the patreon, but is not working, im from Portugal...

  • @donzackery8094
    @donzackery8094 10 місяців тому

    Is there any way you could show us how to actually host our websites, and what to change in e.g. this sign-up system code such that it is compatible for when the website is not being hosted locally anymore?

    • @Dani_Krossing
      @Dani_Krossing  10 місяців тому +1

      All you gotta do, is log into your dashboard on your hosting companys website, and in there it will have a link to your database. 🙂
      In most cases hosting companies provide a MySQL database identical to the phpmyadmin we used in this lesson here.
      You will also find the database information in the dashboard, which tells you the information you need to replace inside the dbh.inc.php file.
      Then all you gotta do is either create the tables inside the online database, or export the one from your local project, and import it into your online version.
      I can't give you a specific tutorial, since all hosting companies have a different dashboard interface. So if you can't find the database link once logged in, then my best advice is for you to contact them and ask where it is. 🙂

  • @thearrive3968
    @thearrive3968 6 місяців тому

    Why do I keep having fatal error about 'require_once 'includes/config_session.inc.php'; while I wrote everything

  • @diegoulloa1750
    @diegoulloa1750 3 місяці тому

    Hello sir, I have a question, why the errors displayee on the screen do not appear. When, for example I don't fill out the fields, absolutely nothing happens, please help

  • @user-yj7pp4op9u
    @user-yj7pp4op9u 5 місяців тому

    Notice: Array to string conversion in includes\config_session.inc.php on line 7 ...... does anyone know why im getting this?

  • @yousifky
    @yousifky 10 місяців тому

    ❤❤❤❤

  • @edwarddempkowski8635
    @edwarddempkowski8635 6 місяців тому

    When I joined and went to compare your files to mine I had noticed that not all the files where there for the 2023 php courses

  • @mymy_oneseven
    @mymy_oneseven 8 місяців тому

    Hello, can you create a tutorial on how to do a continue with Google account and continue with Facebook account? At least a continue with Google is enough

  • @cooltechandmore
    @cooltechandmore 2 місяці тому

    most sites do not show back entered username or password if wrong or taken, they simply show an error so you don't know which is wrong

  • @beardedraider4751
    @beardedraider4751 4 місяці тому

    ok, no matter what i do, i cannot get the page to flag up if details have been entered. It just logs me in and takes me past this page

  • @dreneoddly
    @dreneoddly 6 днів тому

    Query faildSQLSTATE[3D000]: Invalid catalog name: 1046 No database selected

  • @Elizabethomo
    @Elizabethomo 6 місяців тому

    i cant find the materials for this tutorial in my membership sir

  • @delta13dek
    @delta13dek 2 місяці тому

    For whatever reason, whenever I tried to add a new user and some bad data, it worked - throwing an error. Then i would add a new user with good data - it would spit out my success message BUT it would retain the old BAD data in the inputs... So i added an unset($_SESSSION) to rid the data after a successful signup.... I was wondering if that was a good thing or right thing to do.?

    • @realdaly
      @realdaly 2 місяці тому +1

      Same thing happened to me and I added the "unset" if there was an unsuccessfull signup instead, meaning right after I clear off the "error_signup" session variable, idk it just makes more sense for me that way.

  • @HeyRblx
    @HeyRblx 4 місяці тому

    Would it be a problem if i used mysqli to connect to database instead of PDO?

    • @Dani_Krossing
      @Dani_Krossing  4 місяці тому +1

      Nope :) It's just to different ways of doing it, each with their own benefits.

    • @HeyRblx
      @HeyRblx 4 місяці тому

      Thanks! btw if i wanted to add a remember me option would it be hard to implement it myself using cookies? @@Dani_Krossing
      and maybe a dumb question but when uploading my website to like heroku, i would need to adjust he cookie_param domain ,set in the config file right?

  • @paikyaw4449
    @paikyaw4449 9 місяців тому

    I refresh page why username and email are remained in input field . Thank you.

    • @realdaly
      @realdaly 2 місяці тому

      in the "check_signup_errors()" function where you check for "isset($_SESSION["error_signup"])" add this:
      unset($_SESSION["signup_data"]);
      --------------------------------------------------------
      simpty you clear off the session variable that holds the old data after you use it in the view.

  • @ur_myducky
    @ur_myducky 9 місяців тому

    I have a question
    I do the same thing just like tutorial
    But when i click the button ,the page will go to “signup.inc.php” and show nothing on the page .
    How can I solved this problem ?😢 I would appreciate it if you can give me some advices !

    • @Dani_Krossing
      @Dani_Krossing  9 місяців тому

      It means there is a typo in your code, or your database table doesn’t match with the SQL query in your code. 🙂

    • @ur_myducky
      @ur_myducky 8 місяців тому

      ⁠​⁠​⁠@@Dani_Krossing hi , thank for your reply , i check the code found that
      my data can send to database ,and when i click the return key (at the top left of the page)
      it will go back to my index.php page, and show error messages correctly!
      I wonder why i need to click the return key from signup.inc.php to index.php , but can’t just go to index.php page
      Really thanks your reply !😊 it’s very kind of you

  • @samet107
    @samet107 8 місяців тому

    how to prevent the host provider from copying and pasting ypur whole code and work and use it or even sell it with a a few mouseclicks?

    • @Dani_Krossing
      @Dani_Krossing  8 місяців тому

      Pick a well known and trustable hosting provider, and not some weird unknown hosting provider. Or set up your own server, even though that is a lot of extra work.

    • @samet107
      @samet107 8 місяців тому

      @@Dani_Krossing You can't trust anybody nowadays but having your own server seems the "most secure" way to prevent your serverside-coding-effort from getting "stolen". Thx.

  • @sergeisurin2963
    @sergeisurin2963 9 місяців тому

    👍🙏

  • @escanor0731
    @escanor0731 10 місяців тому

    The error handler is working, but when I input the correct data and click the "Sign Up" button, it doesn't send the data to the database. Could this be because I didn't use XAMPP and instead directly installed PHP on my PC? its not connecting to my database 😴🤔

    • @escanor0731
      @escanor0731 10 місяців тому

      $host = 'localhost';
      $dbname = 'signup';
      $dbusername = 'root';
      $dbpassword = ' ';
      try {
      $pdo = new PDO("mysql:host=$host;dbname=$dbname", $dbusername, $dbpassword);
      $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
      } catch (PDOException $e) {
      die("Connection failed" . $e->getMessage());
      this is my dbh.inc.php and also im using MySQL workbench

    • @Dani_Krossing
      @Dani_Krossing  10 місяців тому +3

      Most commonly when you experience this issue, of it not posting anything to the database, while not giving you any error messages, is when the SQL statement doesn't match up with your database table.
      So I would triple check your $query value, to make sure it matches up, and there are no spelling or syntax errors.
      If the issue was your dbh.inc.php file, then you should receive an exception because it couldn't connect. So I'm guessing that's not the issue.

    • @escanor0731
      @escanor0731 10 місяців тому

      @@Dani_Krossing Thank you for always replying. I have already fixed the problem, and perhaps I was just getting overwhelmed by the new things I learned.

    • @Dani_Krossing
      @Dani_Krossing  10 місяців тому

      Glad you got it solved 🙂

  • @WasifAnton
    @WasifAnton 10 місяців тому

    And here is me waiting for the Login video

    • @Dani_Krossing
      @Dani_Krossing  10 місяців тому

      I just edited the video, and will upload it tomorrow. 🙂

  • @olugbengatemitopeajose688
    @olugbengatemitopeajose688 2 місяці тому

    You are such a genius, how can I get ur source codes bro

    • @Dani_Krossing
      @Dani_Krossing  2 місяці тому

      My personal files are available to members in the video description 🙂

    • @olugbengatemitopeajose688
      @olugbengatemitopeajose688 2 місяці тому

      @@Dani_Krossing the link u dropped isn’t going

    • @Dani_Krossing
      @Dani_Krossing  2 місяці тому

      @@olugbengatemitopeajose688 I tested both links, and they work. 🙂

  • @RideYamaha216
    @RideYamaha216 7 місяців тому

    Fatal error: Uncaught Error: Call to undefined function check_signup_errors() ON LINE 53, Why do i get that?

    • @Dani_Krossing
      @Dani_Krossing  7 місяців тому +1

      It means the function doesn’t exist. So either you misspelled the name, or you didn’t link to it correctly 🙂

    • @RideYamaha216
      @RideYamaha216 7 місяців тому +1

      Thanks! currently rewatching the video to find where I made a mistake@@Dani_Krossing