Sleek & Simple Login and Sign Up Form in HTML, CSS & JS

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

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

  • @dcode-software
    @dcode-software  2 ปีที่แล้ว +9

    BUILD YOUR OWN FORM VALIDATION SYSTEM WITH JAVASCRIPT 🔽
    th-cam.com/video/fE5ASN0sbtI/w-d-xo.html
    🏷 *THE ULTIMATE JAVASCRIPT DOM CRASH COURSE* 👇
    www.udemy.com/course/the-ultimate-javascript-dom-crash-course/?referralCode=DC343E5C8ED163F337E1

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

      I was facing another issue while coding, i hope you can help me. In the username field when i enter a single character or less than 10 character it is suppose to give me error to enter 10 characters but instead it takes me back to login page. I am using vscode latest version. I think it has to do with this.

  • @dimedude
    @dimedude 3 ปีที่แล้ว +13

    Great video.. I got there in the end :) it was a bit fast but I guess thats the beauty of it being a video (pause, rewind, fast forward etc :)) The JS part I'm still wrapping my head around but I would love to see a follow up of storing the usernames and validating etc

  • @strategistaow3520
    @strategistaow3520 10 หลายเดือนก่อน

    i like how you explain things not just boldly robotickly go and just write you deserve a sub+like

  • @justinkelley111
    @justinkelley111 4 ปีที่แล้ว +11

    Great explanations. It's insane how fast you can go.

  • @RodrigoMendoza7
    @RodrigoMendoza7 4 ปีที่แล้ว +24

    Hi Dom! Have you thought of using buttons instead of links for "Already have an account? Sign in" and "Don't have an account? Create account"? The reason is they actually perform actions unlike links which they take you to another page. I think it would be more semantic, so to speak.

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

      You can still use tge links to perform other actions like calling a function
      create account?
      my_function(){
      alert("i want to create an account");
      }

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

      @@larryshamala8929 yes, you can... but I think that's not recommended as buttons were created to take care of actions such as those you're highlighting. If you need to run actions (through functions) on the same page, use buttons. If you need to go to another page, use links.

    • @Prakhar-c3f
      @Prakhar-c3f ปีที่แล้ว

      yess

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

    For those having trouble with the hiddern--form part of the video here's how I fixed my problem.
    1.
    I misspelled script in this line of code and had to fix it
    2. const loginForm = document.getElementById("login");
    Instead of using docuemnt.getQuerySelecotr(); use getElementById instead for the loginForm and createAccount variables. Then keep querySelector for the other parts of the code

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

      I had the same problem, thank you for the solution.

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

      Same thing happened to me too, but i tried this and it didn't work

    • @KaranTandel.
      @KaranTandel. 2 ปีที่แล้ว

      Hey can you help me with those code

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

    Thanks For the video, This Is Helping Our Company Lots

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

    great explanation. I haven't touched my computer yet as I'm watching it on my phone, but I already receive a good understanding of how the html, css, and javascript work. thank you!

  • @jubomdivnishvili8638
    @jubomdivnishvili8638 4 ปีที่แล้ว +21

    I like your explanation, it’s always super clarified and interesting, respect❤️

  • @studentesamuelmanhica1405
    @studentesamuelmanhica1405 3 ปีที่แล้ว +28

    I love your work. Wonderful job.
    Could you show us how to integrate a online database like firebase to this beautiful login form? Thank you very much 🥰

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

      That is a great idea

  • @ngocatnguyen5466
    @ngocatnguyen5466 3 ปีที่แล้ว +18

    can u make a video with this form but using localstrorage for signup and login ? Tks you so much

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

      It will be greatful if he does it

  • @_.sunnyraj._
    @_.sunnyraj._ 4 ปีที่แล้ว +25

    Would be interested in database storage of users

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

      this was really easy for database storage: th-cam.com/video/2Vf1D-rUMwE/w-d-xo.html

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

    Have searched the whole web for this answer thx M8

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

    Love the video, Would suggest you SLOW DOWN.

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

    dcode the OG 🔥

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

    Dcode This was so useful thankyou.

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

    wow, underrated video

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

    Yes.. 2*18=32
    very very accurate.

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

    Can you make a working signup webpage tutorial? Please do.

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

    thank you very much! your explain is perfect, maybe a little fast (for me) but perfect :D

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

    Thank you so much man!!! This really helps out a lot!!!

  • @flancebeats6971
    @flancebeats6971 3 ปีที่แล้ว +5

    hey dcode, I'm not sure why as I'm still new to js, but in using e.preventdefault, im still returned to the root index of the folder instead of hidding the register container and showing the login container. I've tried a bunch of things using stack overflow to fix it, but the issue propagates and I'm not sure why.

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

    Superb video, wanted to know any one video coming in future containing from frontend to backend or playlist?

    • @dcode-software
      @dcode-software  4 ปีที่แล้ว

      Hey Prabhat, thank you. Could you please explain a little more what you mean?

    • @prabhatjena5833
      @prabhatjena5833 4 ปีที่แล้ว

      @@dcode-software mean any full stack playlist.

    • @dcode-software
      @dcode-software  4 ปีที่แล้ว

      Ahh ok, sorry I don't have anything like that planned any time soon 😟

    • @prabhatjena5833
      @prabhatjena5833 4 ปีที่แล้ว

      @@dcode-software ok.

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

    Thank you

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

    This was very helpful to me thank you!

  • @ws308
    @ws308 3 ปีที่แล้ว +13

    Hi dcode, thanks for the video. When would you suggest creating a new html page vs. using JavaScript to hide/change the display? Would following JavaScript always cause the whole page to be loaded, so if there were certain parts of the page with heavy images (for example), best to create a new html page to speed up website use?

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

    You're going so fast mate

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

    thank you!

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

    THANK YOU IDLE HTML CODE ITS USEFUL

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

    Thanks

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

    Hey! Nice Video! Just have one question, how do you make like a message that pops up when you put the right information?

  • @oksanadotsenko2550
    @oksanadotsenko2550 10 หลายเดือนก่อน

    thank you so much! just wanted to ask if theres some way formElement recognises that it should refer to either loginForm and createAccountForm?

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

    yes

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

    I started coding when I was 7!

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

    Thank you for this tutorial, you could to the tutorial for backand for this same example.

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

    My link to the already have an account button doesn't open anything it just opens my main html folder. can anyone help?

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

    It's good to use the "span" tag instead of use divs for an error message?

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

    What about data? how to connect in sql server

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

    Thanks , Good Job

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

    have you made any video on JWT, I want my user to signup and login but I don't want there information stored

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

    bro i tried it, but it only reads the html code can someone help me

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

    thankuuu!!

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

    I have a question: the file is called index.html but in the address field it says login-signup-demo - I didn't catch how that leads to the index.html page being shown?

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

    How did you pull up the website to run the code? Thanks

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

      I don’t know if it’s the best but I am using xampp just watch a tutorial how to download it and you can host a website locally on your PC

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

    The blood sweat and tears that went into copying and configuring this code into my html. Thanks for the tutorial

  • @KrishnaMishra-fl6pu
    @KrishnaMishra-fl6pu 3 ปีที่แล้ว

    What a nice video it was 🔥

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

    Why did you put the form__message--error in the Html if you are adding it from the JavaScript?

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

      Cus he wanted to see if the style applies to it

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

    is there a tutorial on how to actually use this to be able to create a genuine account and log onto a page using said account?

  • @leonardodejesus1779
    @leonardodejesus1779 7 หลายเดือนก่อน

    I'm trying to do the --form hidden but for some reason it does not dissapare. Instead its ontop of the account creator. Is there a way to fix that?

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

    please can you create a food ordering webpage

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

    I'm at the bit where you make it so that when you press login it gives an error message but I have an error when I press it saying Uncaught TypeError: Cannot read properties of null (reading 'addEventListener'). Can someone help me?

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

    Great video

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

    hey i trid this but m getting an error at this
    jscript.js:9 Uncaught TypeError: document.addEventListner
    document.addEventListner("DOMContentLoaded", () => {
    const loginForm = document.querySelector("#Login");
    and nothing is working after that PLEASE HELP MAKING A LOGIN FOR OFFICE WORK

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

    Hi Dom! I tried following with this, at 31:30 when you added form_ _hidden it hid the first form and when you added the second form in it showed the second form. On my side, it actually hid both the sign up form and the login form, do you know why that is? could it be due to the nesting on the html page?

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

      I think you might have form--hidden on both forms. Or maybe you forgot to change some tags?

    • @Davide-jc1ox
      @Davide-jc1ox 2 ปีที่แล้ว

      In the index.html you have to add in the body this:

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

      Same problem here, did you manage to find anything?

    • @Davide-jc1ox
      @Davide-jc1ox 2 ปีที่แล้ว

      @@blackwacks5517 read my comments

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

      @@Davide-jc1ox I have it linked already :/

  • @Music-jx1bh
    @Music-jx1bh 3 ปีที่แล้ว

    thank you very much, the ever video

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

    that's great!!!!

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

    So idk where I went wrong but the "hidden" class hides the whole thing and the toggle idea doesn't work. The links don't switch forms, it does nothing. I feel like finding the error would be trying to find a needle in a haystack 😔

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

      have you found out the problem? I have the same problem right now.

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

      I had the same problem and was solved after adding the right link to my js file on the code, hope it helps!

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

    Thank You Sir, can i copy your work for profit business in my country ! i'm just beginner.

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

    when i click on enter in the create account form it takes me to the login form why is this happening and what should i do pls help, and how do we apply the very last function to the "invalid username/password combination" message in log in form to make it disappear when the user clicks to rewrite the input

  • @mohammedabubakar970
    @mohammedabubakar970 4 ปีที่แล้ว

    Nice video👍

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

    Like i click in the ("your allredy account exciting then not open login form ") open directory of desktop file

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

    11:25 - how to add color properties as "constants"

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

    I have everything down but my continue button goes to the login screen instead of submitting it

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

    having some issues with the js switching between login form and create account form,
    it just doesn't work.

  • @fant0m172
    @fant0m172 11 หลายเดือนก่อน

    i have a problem
    when i click sign in, it appears to change. But when i click again to sign up, it still have the form--hidden class in the form. how can i prevent it (i have added preventDefault already)
    P.S: i forgot to add classList in the querrySelector. Thks for read this cmt

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

    How to add PHP and MySQL Data base , This Login System Pls Explain Next Video

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

    Thank you for the intel

  • @NguyenMinh-yr6wu
    @NguyenMinh-yr6wu 3 ปีที่แล้ว

    Good Job Broooo

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

    Hey, brother i have an qeury of this login page because i work as like you work but one error founded plz can you solve it because i need your help please

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

    @7:25 @dcode why does my coffee cup script editor say:
    "A document must not include more than one autofocus attribute"
    ??

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

    great video

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

    thaks u save my live

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

    it' s showing me an error of " Cannot set property 'textContent' of null ", I have to submit my assignment and i can't able to fix it

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

    It's an amazing video but i got a question i can't configure .form__input-group and i looked everywhere

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

    Everything is fantastic, but "2 times 18 is 32" did hurt me

    • @dcode-software
      @dcode-software  2 ปีที่แล้ว +2

      Sometimes it gets a little difficult to do even basic math under pressure 😁

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

      @@dcode-software coding isn't stressing at all, they say

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

    HOW ARE YOU SO FAST?! LOL

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

    i really like your voice for some reason lol

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

    which app is used to host the project

  • @zakmartin
    @zakmartin 7 หลายเดือนก่อน

    But how do you get it to WORK? How do you get it to identify users by their name and PW, and how do you get it to take them to a specific page? And how do you make it possible for people to create an account in the first place? I successfully installed the login form on one of my websites. It looks great, but it doesn't actually do anything. It's like a car without an engine.

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

    Does it store the user data?

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

    The link didnt work for me. could you do a follow up cause the link didnt switch. Copyed the code.

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

    I followed the video but jv doesn’t work

  • @UnKnown-zj8xv
    @UnKnown-zj8xv 3 ปีที่แล้ว

    how can i run or test the code beginner here

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

    Part 2?

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

    Is there a source code? I am having some errors I'm not quite understanding.

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

    How do I connect it to an existing project though?

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

      You would have to implement it, which you put behind a button, and when someone clicks on it it opens the login/sign up page

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

    Why inserting PHP code inside the code prevents the JavaScript event's

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

    Ok but how to I make the login and signup buttons actually do anything but be buttons.. I have NOT found any tutorials on the whole internet on how to do it using Visual Studio Code

    • @dcode-software
      @dcode-software  3 ปีที่แล้ว +2

      The reason why you can't find any videos on it is because there are many different server-side technologies you can use for your websites. This video focuses on the front-end of creating a signup/login form. I suggest you look up how to create login/signup form using PHP - try the "codecourse" TH-cam channel.

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

      @@dcode-software Thank you!

  • @WestCoastWeirdo-g
    @WestCoastWeirdo-g ปีที่แล้ว

    hi i have done everything in this tutorial but doent work please help

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

    Your video is good but even if I write the correct password it would still be wrong can you help me?

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

    been following this video and im on day 2 of trying to work out this issue im having - cant tell if its from the JS or HTML however,
    when i click on the links that have the element " href="./" " (FOR EXAMPLE :
    Already have Account? Sign in
    same goes for the create account link
    I dont get the JS to activate and instead it takes me to my file directly ... i've been trying to figure this out for a while now, im a self taught noob coder lol - anyone have any solutions?

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

      you need to have href="#" ./ this means that it should go back a file

  • @lionm.4573
    @lionm.4573 3 ปีที่แล้ว

    why use DOMContentLoaded Javascript

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

    Does anyone know the name of this colour sheme if it's not custom?

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

    What is the password/ username and where are they in the code?

  • @SkkirwqaaxyiuFz345..
    @SkkirwqaaxyiuFz345.. 3 ปีที่แล้ว

    so uhm i need some help cuz i tried that i even removed my code any copied urs in but it wont help that already have an accountbutton will always take me to an index file of all my files idk what todo at this point

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

    how do you get that jpg file into visual studio code

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

    wow, only 13 mins in and my container wont center and im getting a syntax error for putting ':' right after --color-primary

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

    Idk what I’ve done but when clicking on the create new account button or clicking already have an account login it just takes me to index of c:\ n then then navigation of the file can anyone help

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

    Why other people don't add container ? They ignore that .

  • @snowsol
    @snowsol 4 ปีที่แล้ว

    Like you did in this vid but put a skip point in the screen