Form validation with JavaScript (on user registration form)
ฝัง
- เผยแพร่เมื่อ 24 ก.ย. 2024
- Using JavaScript, the input fields of the registration page are validated individually. Form submitting is prevented if all the form validation rules are not fulfilled.
Styled error messages are displayed underneath each field and the user is prompted to re-enter the correct value.
To learn how to insert in the database, check out this video:
• Inserting and retrievi...
i spend the first few minutes trying to figure out what was wrong with your sound.
I spent 10 minutes troubleshooting like 3 times thinking the audio card broke. Pissed off for nothing
hahaahha same here
hahah
😂
thanks for the simple teaching yet very understandable you make it easy to learn for us new beginners in programming.
Amazing!!! but i recommend that you should not using php, you just creat a new file and name it .html and that it because you can write a lot of code in html like javascript, php, css.
Please do a video all these along with checkboxes select and radio date as well
Can u do it with out using php?
lol why do you copy code from google?
Can you kindly provide the link to the code you saw on Google?
@@AwaMelvine yes hehe xD
codewithawa.com/posts/form-validation-with-javascript
@@steveg917 Okay. That is my website. I wrote the article.
@@AwaMelvine ho ok xD
nice tutorial but it would have been nicer if you were talking.
Man, I have my doubts about it.
I mean... maybe he isn't a talking guy. And fair point to silent tutorials: they almost always cut right to the chase.
Thank you. It worked perfectly. Do more tutorials with sound!
this code is submitting the data, but the output is not showing
I got it and It's working, thanks for the great tutorial
Bro plz don't make soundless videos 😅 but yes it was good and would have been best with sound
what is the role of that index .php?
I thought the form action="register.php"> (the form should be directed to register.php not index.php)
Thanks for this. Excellent tutorial!!!
ERROR: Uncaught TypeError: name[0].addEventListener is not a function
at line
name.addEventListener("blur", nameVerify, true);
where
var name = document.forms["generalForm"]["name"];
I need help for this error
I have tried validating my form several times but its continusly showing uncought error
this is soo great thanks for sharing your knowledge,
God bless you and i also do appreciate it soo much!!!
Perhaps you could have turned up the audio level a bit, I can't hear you
JUST WHAT IM LOOKIN FOR!!!!!
Thank u so much for given source code
When I have been entering username . Error message doesn't hide why ???
Hi I am getting error in my wordpress site The tag 'FORM [method=GET]' requires including the 'amp-form' extension JavaScript.
Please help me to resolve it I am non techical person
Great. Its working
Thankyou
It ignores the javascript completely
when I click the submit button it automatically go to the index.php page
even if I didn't write anything
Same here. Have you found the problem yet?
Elad Dahan return false;
first I had this behaviour also
then I found the mistake in "var username_error = document.getElementByIds("username_error");" it was the last "s" in getElementByIds
this is happening here too.
i had this problem but now i have fixed if don't add the "onsubmit="validator()"or validate() it will ignore javascript and go straight to the next page
I HOPE IT WORKS FOR YOU ALL GUYS :)
thank you for javascript validation
Great video, mate! Thanks :)
thanks bro, this video a lot of much help me
Thanks to you for create such this tutorial, please create a pos management tutorial by php and mysqli.
it really helped me out man in validating my form that i made.
VERY HAPPY :)
thanks bro for help me about validate form ...
This text under the forms doesn't looks beautifully. I'd have replaced it under the Register into a separate div
super bro congrats! u can post a complete one business purpose to create a website using html and css , javascript , jquery only pls dont using boostrap
Vignesh kumar website can be by using html,css,javaScript,jQuery but without bootstrap it will be not look nice so for responsiveness and correct padding and margin bootstrap is important to use .
Agree @kusti classes without bootstrap you can't make website. coz responsivnes is very necessary and that's can be done only with the help of bootstrap.
Wow this is so helpful for me thanks sir
Good Job 👏👏 Thanks Man
Thank you :D
where is index.php?
hello am marquee and I think this is the best work bravo .....how will get started upto your level
and with sound it could be more better
Is it just me or this video doesn't have audio at all?
any way of having the error show with an invalid email instead of just blank? trying to figure this out any advice would be great :)
have the same issue, please advise
Why in password validation You didnt put password_confirm?
i saved your complete code but authentication is not working for me
This video focuses mainly on validating with Javascript. If you want to implement authentication, you can try following this other video: th-cam.com/video/8K4Wt37Itc4/w-d-xo.html
code did not work!
No sound!
So we have to click everytime submit to validate each field.
This might be very hard for users if we have large number of fields in a form.
Is there any way to show all the input field errors at once after we click on submit ?
i need answer for this.
You could put an onchange="yourfunctionname()" on every individual input but it would also show the error if you click on the input before you start typing, but i guess there's something like onunfocus="funtion()"
i waste my 3 hours on it!!!! username vale vala chl rha baaki email password nhi chl rha !!!! n all the code is same!!
why they used index.php
Sir can you give the codes? I try but it doesn't work. Please? Thanks
Form validation with JS or with PHP?? Which one is preferred ?
It is good to do both.
Validating a form with javascript doesn't require the user to reload the page which is good user experience and therefore recommended. However, a user can play tricks on their browser and manage to bypass your javascript validation. If they do, then you will need validation on the server (php) to further validate the user input otherwise your validation is ineffective and you will have to deal with poor or invalid input data.
@@AwaMelvine thankyou for your explanation.
how to it working with id dynamic?
Code not working.
or uper se sound bhi ni hai
Thank you very much. Your video was of really great help to me.
Thanks a lot!
Thanks that was helpful
thanks, good job!
Can u put up videos about the addeventlisteners
So awesome!
thanks i thimk that what i am needing for
nice lesson
nice if regex is also included ...
Thank man
parce no funciona con formularios en ventanas modales
this code doesnt work at all
Thank you so much
The php not worked it is showing the code in entered
easy life sir but in apache and in MySQL server it is also showing me error....
It is possible to make jquer validation in asp.net
thanks Sir!
Thanks Man
Thanks for watching
Thank u sir..
it's working
Who else recommended?
Bruh, this is straight up HTML5 and JAVASCRIPT.
Anyone care to explain the java code for me?
thanks
For IEMS school app how to login tutorial
terima kasih
Thanks :)
My pleasure :D
But I have a little bug with it, only Username disapears (Error Message) when I fill the field...
Your code is NOT working !
hey brother it is will work correctly just send me your code what are you doing actually .
thanks. please also add your voice
Good, but no sound, its boring
nice tutorial
please can you make a tutorial on html clickable table
i want if i click the table row, let the data be submitted to my form
Thanks for nice this one. I will try to connect with you.
bilkul bakbas,,,,mere me to ye javascript program run hi nh ho rha h,,jabki mene pura as it copy kiya kiya
Thanks man!
simple form validation demo :www.skptricks.com/2018/01/simple-form-validation-in-jquery-using-regular-expression.html
Nice one..
7:10 what kind of witchery is that?
it's just sublimeText :P
Keep voice explaination
username.focus() it means what?
el cursor no importa donde esté, vuelve a el input username
cursor will focus on input field(username).
lets say vamoooos
its not working
it will work just send you code what are you doding actually .
view example code
datainflow.com/password-strength-validation-javascript
Plz say something
brother dont make sound less video,
👏👏👏👍
Might as well be in Mandarin.
can i get the code bro ?
There a link in the description. Click the link. Download the file. It a zip file unzip the file. once you unzip the file you can either open the file in your browser and click ctrl+U to get the source code or just open the file in note pad etc.
Hey dude! Your site not working, 404
Levelord Thanks for the info man and sorry for the inconvenience. I'm actually upgrading the site. It'll be up in a few minutes
Oh, glad you didnt abandon it
yesterday I reviewed your validation function and wanted to improve it, but today *boom* "not avalible"!
sir give me file css
Not help full
waste of tym
3:16 css