我想使用post检索值 Update.php
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))
{
$getres=array();
$getres=explode(":", $res[$monthname]) ;
$t=0;
foreach($getres as $expres)
{
if(!empty($expres))
{
// $sepqua=array();
//$sepqua=explode("-",$expres);
echo"<td>";
?>
<input type="text" name=<?php echo "month$t$o"?> value="<?php echo $expres;?>">
<?php
echo"</td>";
$t++;
}
}
$i++;}
?>
retrieve.php
<?php
$mon=array('January','February','March','April','May','June','July','August','September','October','November','December');
//$month=array();
//$getmonth=array();
for ($i=0;$i<12;$i++)
{
echo"<tr>";
$monthname=$mon[$i];
echo"<td>";
echo $monthname;
echo"</td>";
echo"</tr>";
$monappend="";
for($g=0;$g<15;$g++)
{
//echo"</tr>";
$month="month$g$i";
if(!empty($_POST[$month]))
{
$getmonth=$_POST[$month];
echo"<tr>";
echo"<td>";
echo $get=$getmonth;
echo"<td>";
echo"</tr>";
$monappend.=$get.":";
}
}
$updatemonth=mysql_query("update workupdate set ".$monthname."='$monappend' where Empname='$empname' and Designation='$designation'",$conn);
}
假设$_POST[month10]
值为02,$_POST[month110]
的{{1}}事件检索到相同的值textbox(month110)
具有不同的值。请帮我解决此问题.how可以得到$_post[month110]
的值它给出了$_post[month10]