validation problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
altafhussain
Forum Newbie
Posts: 16
Joined: Sun Feb 07, 2010 9:42 am

validation problem

Post 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
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: validation problem

Post 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/
Post Reply