Posts: 427
Name: Stuart
Location: Glasgow, Scotland
|
Hi guys
Ive inserted the Yav validation script into a form of mine and Im having a couple of problems. The actual validation works great and an alert pops up telling me what is wrong but once i click OK it submits the form anyway, even though it isnt right.
Ive attached the Yav script in case you want to have a look although i would presume it isnt something thats wrong in there.
The rules script section is:
Code:
<SCRIPT>
var rules=new Array();
rules[0]='supplyMusic.[track]|required|You must select an option to supply your music';
rules[1]='supplyTrack.[track]|required|You must select an option to supply a reference track';
</SCRIPT>
and my form header code is:
Code:
<form name="myForm" method="POST" onsubmit="return performCheck('myForm', rules, 'classic');" action="page.php" enctype="multipart/form-data">
Any help on this would be grand!
Cheers
Stoot
|