php form post method
<p>I am trying to pass array using form post method : </p>

<p>submit.php</p>

<pre><code>&lt;form method="post"   action="makepub.php"&gt; 
&lt;?php
....   Loop
....   
echo '&lt;/td&gt;&lt;td align="center"&gt;';
echo '&lt;input type="checkbox" name="file_list[]" value="'.$pr.'"&gt;' ;
echo '&lt;/td&gt;&lt;tr/&gt;';     
....
....   Loop end
?&gt;

makepub.php   :
if (isset($_POST['submit1'])) { 
     $file_list = $_POST["file_list"];
     $how_many = count($file_list); 
echo '&lt;b&gt;Total No of Public files chosen : &lt;/b&gt;'.$how_many.'&lt;br&gt;&lt;br&gt;'; 
if ($how_many&gt;0) { 
     echo '&lt;b&gt;You changed following files to public : &lt;/b&gt;&lt;br&gt;'; 
          } 
for ($i=0; $i&lt;$how_many; $i++) { 
     echo   ($i+1) . '- ' . $file_list[$i] . '&lt;br&gt;'; 
     //   Some code here
} 
     echo "&lt;br&gt;&lt;br&gt;"; 
}
</code></pre>

<p>Ok these two files works perfectly on my localhost with XAMPP. 
php version 5.3</p>

<p>but on my server array is not getting passed. 
I checked by replacing the array with single variable. Even so nothing is passed to file makepub.php</p>

<p>Is there anything i am missing with post here ???
Any suggestion is appreciated.   </p>

<p>Thanks.</p>
