I'm trying to create a form validation that will validate multiple fields in
the form. I thought the best idea would be to check the fields when the
user clicks the submit button. I'm having some problems with the javascript
side. Here is what I have so far.
function verify_form(chk_fields)
{
var chk_fld = new Array(chk_fields);
for (var i=1; i<(ComponentCount + 1); i++)
msg = msg;
//all we have to do is return the return value of the confirm() method
return confirm(msg)
}
My main goal is too loop through the array. I copied this code from another
project and I'm not real sure what it's doing. Any help/suggestions would
be awesome.
Thanks
Robert
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.