validation code java script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nitsmooth
Forum Newbie
Posts: 13
Joined: Thu May 22, 2008 6:50 am

validation code java script

Post by nitsmooth »

i call the validate function(validate_user) on submit button

onSubmit="return validate_user()"

but smhow the execution does not go inside the validate_user()

function validate_user()
{
}
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: validation code java script

Post by VladSun »

onsubmit must be used in the FORM tag, not in the submit button tag.
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply