接收页面只能接收上个页面最后一复选框的值?急,急!在线等. <input type="checkbox" name="checkbox[]" 这样试试 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <form action="checkprocess.php?give_id=<?php $give_id ?>" method="post"><?php//以下是等待核实的捐助者$i=0; while($row=mysql_fetch_array($result)){ $give_id =$row["give_id"]; $give_name =$row["give_name"]; ?> <tr align="center"> <td align="left"> <font color="007F7F"> <input type="checkbox" name="checkbox<?=$i?>" value=<?php echo $give_id ?>> <?php echo $give_name; ?> </font></td> <td align="left"> <font color="007F7F"><?php echo $give_tel ; ?></font></td> </td> </tr><?php $i++;} ?></tr></table><p><table align="center"><tr><td> <input type="hidden" name="j" value="<?=$i?>"> <input type="submit" name="Submit" value="通过审核"> </td></tr> </table></p> </form><? //接收check.php传递过来的参数//echo $give_name;echo $give_tel;echo $give_address;echo $give_money;echo $give_words;echo $give_time;for ($i=0;$i<$_POST["j"];$i++){$give_id = $_POST['checkbox'.$i];echo $give_id;$sql="update give set give_check=1 where give_id='".$give_id."'";$result= mysql_db_query($dbname,$sql);//把 sql语句送到数据库中进行处理. if (!$result){ echo '审核失败!请重新审核!'; } else{ echo '审核成功!'; }}?> php如何将一个特殊字符串转为数组? 关于页面显示数据库内容的问题,急急急 PHP 的move_uploaded_file问题 未来趋势来看,.NET和PHP哪个有前途?或者哪个流行 php最简单的问题,只耽误高手1分钟时间,进来指点下。。。 六年工作经验,期待伯乐!(广州),欢迎大家捧场!!!!!! 招网站维护 有没有办法在网页向QQ号码发信息的? 文件指针怎样下移一行 救命~!!! 我的一个台湾朋友,在一家台湾软件公司工作,想在大陆寻求PHP和ASP高手合作,哪位有兴趣,请速于我联系 我的PHP不支持imap函数。请高手指点
<?php
//以下是等待核实的捐助者
$i=0;
while($row=mysql_fetch_array($result))
{
$give_id =$row["give_id"];
$give_name =$row["give_name"];
?> <tr align="center">
<td align="left"> <font color="007F7F">
<input type="checkbox" name="checkbox<?=$i?>" value=<?php echo $give_id ?>> <?php echo $give_name; ?>
</font></td>
<td align="left"> <font color="007F7F"><?php echo $give_tel ; ?></font></td>
</td>
</tr><?php
$i++;
} ?>
</tr>
</table>
<p>
<table align="center">
<tr><td>
<input type="hidden" name="j" value="<?=$i?>">
<input type="submit" name="Submit" value="通过审核">
</td></tr> </table></p>
</form>
<?
//接收check.php传递过来的参数
//echo $give_name;echo $give_tel;echo $give_address;echo $give_money;echo $give_words;echo $give_time;
for ($i=0;$i<$_POST["j"];$i++){
$give_id = $_POST['checkbox'.$i];
echo $give_id;
$sql="update give set give_check=1 where give_id='".$give_id."'";$result= mysql_db_query($dbname,$sql);//把 sql语句送到数据库中进行处理.
if (!$result){
echo '审核失败!请重新审核!';
}
else{
echo '审核成功!';
}
}
?>