我想发布foreach循环中的文本框值,如何将值从一个页面发布到另一个页面。请帮帮我。 如何在我的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++;}
?>
retrieve.php
<?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>";
}
}
?>