如何在php中检索动态复选框值并将其发布到下一页

如何在php中检索动态复选框值并将其发布到下一页,php,Php,我想发布foreach循环中的textbox值,如何从一个页面发布和检索值到另一个页面。请帮我做这个。 如何在我的retrieve.php页面上检索我发布的文本框值 <?php $months=array("January","February","March","April","May","June","July","August","September","October","November","December"); for($o=0;$o<12;$

我想发布foreach循环中的textbox值,如何从一个页面发布和检索值到另一个页面。请帮我做这个。 如何在我的retrieve.php页面上检索我发布的文本框值

<?php
      $months=array("January","February","March","April","May","June","July","August","September","October","November","December");

      for($o=0;$o<12;$o++)
      {
  $monthname=$months[$o];
   $get=mysql_query("select * from workupdate where Empname='$empname'and Designation='$designation'");
  $i=1;
  echo "<td>";
  echo $monthname;
  echo "</td>";
  while($res=mysql_fetch_array($get)) 
  {
   //foreach($sepqua

   $getres=array();
   $getres=explode(":", $res[$monthname]) ;
   $sepqua=array();
   //$sepqua=explode("-",$getres);


   //echo '<input type="text" name="sno" value='..'>';
   foreach($getres as $expres) 

        {
        if(!empty($expres))
         {
          $t=0;
          echo"month$t$o";
         echo"<td>";
         echo '<input type="text" name="month$t$o" value='.$expres.'>' ;    
         echo"</td>";
         $t++;
        }
      }
   $i++;}
   ?>

如果在html中使用数组,您可以让自己变得更容易。然后,您可以简单地循环POST变量:
。现在
$\u POST['month']
是一个多维数组。如何在下一页@jeroen检索数组值我遇到了一些错误:“C:\xampp\htdocs\task2\updateweightagevalues.php第68行数组中的数组到字符串转换”你能帮我解决这个问题吗
<?php
     $month=array();
for($k=0;$k<=12;$k++)
{
    $t=0;
   $getmonth="month".$t.$k;
   $month=array();
   echo $_POST[$getmonth];
   //echo $month;
    $t++;
   foreach($month as $value)
   {

   echo"<td>";
   echo $value;
   echo"</td>";
//echo"</tr>";
   }

}
?>