PHP checkbox如何批量删除
请问checkbox如何批量删除?<?phpheader("Content-type:text/html;charset=utf-8");$_pagesize=10;$_...
请问checkbox如何批量删除?
<?php
header("Content-type: text/html; charset=utf-8");
$_pagesize = 10;
$_page = isset($_GET['page']) && $_GET['page'] > 0 ? $_GET['page'] : 1;
$_pagenum = ($_page - 1) * $_pagesize;
$_num = mysql_num_rows(_query("SELECT * FROM jsy"));
$_pagevalue = ceil($_num / $_pagesize);
$_result = _query("SELECT * FROM jsy LIMIT $_pagenum,$_pagesize");
?>
<body>
<div id="scjsy">
<form name="scjsy" method="post" action="scjsy.php?action=scjsy">
<table>
<tr><th colspan=6>删除驾驶员</th></tr>
<tr><td style=font-weight:bold;>工 号</td><td style=font-weight:bold;>姓 名</td>
<td style=font-weight:bold;>出生日期</td><td style=font-weight:bold;>领证日期</td>
<td style=font-weight:bold;>选 择</td></tr>
<?php
while (!!$_rows = _fetch_array_list($_result)){
?>
<tr><td><?php echo $_rows['gonghao'];$_values=$_rows['gonghao'];?></td>
<td><?php echo $_rows['name']?></td><td><?php echo $_rows['birth']?></td>
<td><?php echo $_rows['lzrq']?></td><td><input type="checkbox",value=“$_values” style="zoom:150%;" /><?php echo $_values?></td></tr>
<?php }?>
<tr><td colspan=6><input type="submit" name="send" class="scjsy" value="删除" style=font-size:18px;/>
<input type="reset" class="reset" value="重置" /></td></tr>
</table>
</form>
<div id="page_num">
<ul>
<?php for ($i=0;$i<$_pagevalue;$i++) {
if ($_page == ($i+1)) {
echo '<li><a href="scjsy.php?page='.($i+1).'" class="selected">'.($i+1).'</a></li>';
} else {
echo '<li><a href="scjsy.php?page='.($i+1).'">'.($i+1).'</a></li>';
}
}
?>
</ul>
</div>
</div> 展开
<?php
header("Content-type: text/html; charset=utf-8");
$_pagesize = 10;
$_page = isset($_GET['page']) && $_GET['page'] > 0 ? $_GET['page'] : 1;
$_pagenum = ($_page - 1) * $_pagesize;
$_num = mysql_num_rows(_query("SELECT * FROM jsy"));
$_pagevalue = ceil($_num / $_pagesize);
$_result = _query("SELECT * FROM jsy LIMIT $_pagenum,$_pagesize");
?>
<body>
<div id="scjsy">
<form name="scjsy" method="post" action="scjsy.php?action=scjsy">
<table>
<tr><th colspan=6>删除驾驶员</th></tr>
<tr><td style=font-weight:bold;>工 号</td><td style=font-weight:bold;>姓 名</td>
<td style=font-weight:bold;>出生日期</td><td style=font-weight:bold;>领证日期</td>
<td style=font-weight:bold;>选 择</td></tr>
<?php
while (!!$_rows = _fetch_array_list($_result)){
?>
<tr><td><?php echo $_rows['gonghao'];$_values=$_rows['gonghao'];?></td>
<td><?php echo $_rows['name']?></td><td><?php echo $_rows['birth']?></td>
<td><?php echo $_rows['lzrq']?></td><td><input type="checkbox",value=“$_values” style="zoom:150%;" /><?php echo $_values?></td></tr>
<?php }?>
<tr><td colspan=6><input type="submit" name="send" class="scjsy" value="删除" style=font-size:18px;/>
<input type="reset" class="reset" value="重置" /></td></tr>
</table>
</form>
<div id="page_num">
<ul>
<?php for ($i=0;$i<$_pagevalue;$i++) {
if ($_page == ($i+1)) {
echo '<li><a href="scjsy.php?page='.($i+1).'" class="selected">'.($i+1).'</a></li>';
} else {
echo '<li><a href="scjsy.php?page='.($i+1).'">'.($i+1).'</a></li>';
}
}
?>
</ul>
</div>
</div> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询