I have an array in Javascript with many possible sizes. Is there any way for me to pass it to a PHP file for computation?
I would like to use something like a form in html
<form id="barfoo" action="foobar.php" method="post">
<input type="hidden" name="foo">
<input type="hidden" name="bar">
<input type="hidden" name="bam">
</form>
Usually, these inputs are strings. Is there any way to have an array as input to pass? Like fooarray=['abc', 'dbe', '3r'], or fooarray=['1','c','4','5']. Before it is generated, I don't know the size of it. Is it possible to put it in a form and pass?
Thanks a lot!