M
Mike
Hello,
I am trying to pass a js array ,Round1[],
to a form and send it. I can get it to work with serialized values but
I want to send the data as an array.
The arrays are filled with data. I am getting an error.
in the JS:
document.forms['aJaX'].Result1[].value = Round1[];
document.forms['aJaX'].Result2[].value = Round2[];
document.forms['aJaX'].Result3[].value = Round3[];
document.forms['aJaX'].Result4[].value = Round4[];
document.forms['aJaX'].Region.value = Region;
document.forms['aJaX'].submit();}
In The Form
<form name="aJaX" method="POST" action="saveteams.php"
style="position:absolute" >
<input type="hidden" name="Result1[]" value="" >
<input type="hidden" name="Result2[]" value="" >
<input type="hidden" name="Result3[]" value="" >
<input type="hidden" name="Result4[]" value="" >
<input type="hidden" name="Region" value="" >
</form>
Thanks
Mike
I am trying to pass a js array ,Round1[],
to a form and send it. I can get it to work with serialized values but
I want to send the data as an array.
The arrays are filled with data. I am getting an error.
in the JS:
document.forms['aJaX'].Result1[].value = Round1[];
document.forms['aJaX'].Result2[].value = Round2[];
document.forms['aJaX'].Result3[].value = Round3[];
document.forms['aJaX'].Result4[].value = Round4[];
document.forms['aJaX'].Region.value = Region;
document.forms['aJaX'].submit();}
In The Form
<form name="aJaX" method="POST" action="saveteams.php"
style="position:absolute" >
<input type="hidden" name="Result1[]" value="" >
<input type="hidden" name="Result2[]" value="" >
<input type="hidden" name="Result3[]" value="" >
<input type="hidden" name="Result4[]" value="" >
<input type="hidden" name="Region" value="" >
</form>
Thanks
Mike