[Javascript] Form Validation
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.
Duration : 0:8:35
Tags: alert, begin, Beginner, body, charny, charnycoding, charnygames, clock, close, code, color, CSS, document, Dreamweaver, Easy, echo, element, explorer, firefox, first, form, forms, function, getelement, getelementbyid, Head, Hello, helloworld, host, html, HTTP, inner, innerhtml, internet, java, javascript, label, length, local, localhost, notepad, onload, parameter, PHP, return, say, Server, setTimeout, simple, Style, submit, tag, tags, text, textbox, title, tutorial, tutorials, tuts, validate, validation, Wamp, WampServer, web, world
their is one great …
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 …
Thank you so much for this wonderful tutorial! Diggin’ this! ;D
cant read, cant …
cant read, cant understand your accent
regbefore= …
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… …
nice accent man…the heeedi of the laaable is……..:P
but awesome explanation..understood everything….thanks
What’ wrong with …
What’ wrong with the emphasizing?
This was helpful …
This was helpful but please give tutorial on how to use external JS file, and how to validate multiple form Items.
i cant read
i cant read
@TheJSBachMr …
@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.
when u click on ” …
when u click on “submit” button how the should be stored in the database
Thanks, that was …
Thanks, that was pretty good
I am Sajjad …
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 …
good job can u help me in java scipt
i subscribed you …
i subscribed you dude
thanks very much …
thanks very much man very very very superb tutorial
Thanks man, good …
Thanks man, good tutorial…
I haven’t checked your others yet, but maybe a PHP & Javascript validation
with password, username, email checker?
i copied this …
i copied this entire tutorial exactly and it doesn’t work.
@TheCometJack LOL …
@TheCometJack LOL WTF
@TheCometJack Are …
@TheCometJack Are you high lol!
Fucking win bro. …
win bro. Wet sex later on, keep it wet <3