In this video, I’ll show you how to validate a form with Javascript.
A Javascript validation isn’t secure, a server side (PHP) validation should be made too.
The code can be found here :
http://charnycoding.pastebin.com/4xekFznA
In this video, I’m using Dreamweaver Cs5 and Firefox.
Original source
37 responses to “[Javascript] Form Validation”
Great one, very Helpful…
nice
great video, but i have a question i dont have installed php, i wont be able to run it well right?
Can't see anything..and you talk fast..slow down
Thank you so much for this video… !!!
This is exactly what I needed, thank you very much!
A switch statement would be easier.
thank you for sharing!
Thanks alot pare! You've done great!
thanks dude…………..
Thanks heaps and your english is not bad at all…
NICE
dafuq is a hay-d ?
in-poot, lAAbl xD xD
thanks
Thank You! This was very helpful!
ozm man
Perfect! Thank you so much!
hey man thanx please make more.
very useful tut……….thanks
Thank you!
Very good tutorial!
Thank you!
It's Not Working
have you tried to go fullscreen? if you still can't see maybe you should check your eyes.
I cant read a thing u wrote,next tym try to zoom when u type something
does anybody know how to close a page in javascript. in dreamweaver cs5.5 I have a promopt that comes up and if the field is invalid i want it to close the page im on, ive used document.close nad window.close and it does not close the page im on
their is one great problem with your Jscript code, you need to be aware of that your using the global name space, that can make problems if you have more complicated programs!
Thank you so much for this wonderful tutorial! Diggin' this! ;D
cant read, cant understand your accent
regbefore=document.forms[0].elements[0].value.replace(/s+/gi,"")
reg=new RegExp("jusTinbieber","gi").test(regbefore)
if(reg==true && regbefore.length==12){window.alert("You are faggot"); }
nice accent man…the heeedi of the laaable is……..:P
but awesome explanation..understood everything….thanks 🙂
This was helpful but please give tutorial on how to use external JS file, and how to validate multiple form Items.
i cant read
@TheJSBachMr Thanks for your comment. I got it all sorted actually… I did a full course on javascript programming that taught me everything i needed for form validation and a whole bunch more as well. tryimg to copy and paste other people's code just didn't work no matter what i did, or how many different versions I tried so i had to teach myself… which was a much better solution anyway. 🙂
Thanks, that was pretty good
I am Sajjad Student of IT.
I am very happy to see your video.
I learend from your video.
I am from pakistan.Thanks.
good job can u help me in java scipt