Hidden input field
<p>I have an array with 8 elements defined within a script.</p>

<p>I'd like to know how I can pass all the values of this array to a single hidden element.</p>

<p>Pls help.</p>

<pre><code>&lt;script ='text/javascript'&gt;

function abc(){

var arr= new Array(8);
for (var i=0; i&lt;8;i++)
{
arr[i]= ...;
}
&lt;/script&gt;
&lt;input type="hidden" id="arrs" name="arrs" value= ? &gt;
</code></pre>
