Hi.
If I can just clear something up...
are you generating the form name anything like this:
<form name="<?=arrayname[]?>" method="post" action="whatever.php">
???
If so, how come you are getting errors using javascript as the form name should not contain [] after it has passed through the php parser, i.e. if the script has been parsed then the client side javascript shouldnt have a problem.
If I'm on the wrong track please provide more info and I shall re-evaluate.
Cheers
Leon.