Page 1 of 1

validation problem

Posted: Wed Jun 30, 2010 1:48 am
by altafhussain
Hello every body
i don't know any thing about javascript but i want to do some thing with my form
i know html and php and i make a form but i don't know javascript validation so help me to overcome this problem

i have a form

Code: Select all


<form name="etc" action =etc.php method="post">
<input type=text name=etc id=etc >
<input type=submit name=submit value=submit >
</form>
now if user select this field and input his name then right but if user left it empty then it show the error and don't move to another field focusing it until use fill it so please help me javascript user it's very simple but i don't know

Re: validation problem

Posted: Wed Jun 30, 2010 8:54 am
by Jade
You need to take some javascript tutorials. You can find this kind of validation information on pretty much any site you visit.
http://www.elated.com/articles/form-val ... avascript/