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.
@mayurjumani144 It's not kind to mock someone like that. Just saying, ok :-)
unlokia 1 week ago
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!
NomisATdk 1 month ago
Thank you so much for this wonderful tutorial! Diggin' this! ;D
leoyt123 1 month ago
cant read, cant understand your accent
GayBooi 2 months ago
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"); }
6580006247 3 months ago
nice accent man...the heeedi of the laaable is........:P
but awesome explanation..understood everything....thanks :)
mayurjumani144 3 months ago
What' wrong with the emphasizing?
tezropunkel 9 months ago
This was helpful but please give tutorial on how to use external JS file, and how to validate multiple form Items.
symphoytone 9 months ago
i cant read
THEODORLOO 10 months ago
@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. :)
aliceinultraland 11 months ago