serialize and post array to a process file
<p>I'm trying to post an array to another file to be processed. The array is below and it populates rows properly. I have it initialized at the beginning of the script tag to make it global.<br>
 In javascript:</p>

<pre><code>var locationsall = new Array();
locationsall[counter] = new Array();
locationsall[counter][0] = address;
locationsall[counter][1] = lat;
locationsall[counter][2] = lng;
</code></pre>

<p>In my form i try to serialzie it and post it</p>

<pre><code> &lt;input type="hidden" name="result" value="&lt;?php echo serialize($locationsall); ?&gt;"&gt;
</code></pre>

<p>When i try to unserialize it, it doesn't have anything..</p>

<pre><code>    $locations = unserialize($_POST['result']);
</code></pre>

<p>What am i doing wrong here?</p>
