【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“delete.php”一文,供大家参考学习!
<html>
<body style="font-family:'新宋体'; font-size:12px; margin:0;">
<fieldset><table width="100%">
<tr><td style="background-image:url(header_bg.jpg)"><img src="logo.jpg"></td></tr>
</table></fieldset>
<fieldset><legend>删除用户信息</legend>
<table border=0 style=" background-color: #F9FBFD;
border-top-width: 1px; border-top-style: solid;
border-right-style: solid; border-bottom-style: solid;
border-left-style: solid; border-top-color: #CDD9E7;
border-right-color: #CDD9E7; border-bottom-color: #CDD9E7;
border-left-color: #CDD9E7; border-right-width: 0px;
border-bottom-width: 0px; border-left-width: 0px;
width:100%;">
<form action=delete
PHP.php method=post>
<tr><td>
<table width="100%" cellpadding="0" cellspacing="0"
style="background-color: #FFFFFF;
border-top-width: 1px; border-right-width: 1px;
border-bottom-width: 1px; border-left-width: 1px;
border-top-style: solid; border-right-style: solid;
border-bottom-style: solid; border-left-style: solid;
border-top-color: #0064A6; border-right-color: #0064A6;
border-bottom-color: #0064A6; border-left-color: #0064A6;">
<tr>
<td>选择</td>
<td>编号</td>
<td></td>
<td>性别</td>
<td>年龄</td>
</tr>
<?php
$link=mysql_connect("localhost","root","0");
my
sql_select_db("db_student");
$exec="select * from student";
$result=
mysql_query($exec);
while($rs=mysql_fetch_object($result))
{
$id=$rs->ID;
$name=$rs->name;
$sex=$rs->sex;
$age=$rs->age;
echo "<tr><td><input type=radio name=de value='$id'></td>
<td>".$id."</td><td>".$name."</td>
<td>".$sex."</td><td>".$age."</td></tr>";
}
?>
</table>
</td>
</tr>
<tr>
<td><input style="font-family: 'Tahoma';
font-size: 9pt; color: #003399;
border: 1px #003399 solid;color:#006699;
BORDER-BOTTOM: #93bee2 1px solid;
BORDER-LEFT: #93bee2 1px solid;
BORDER-RIGHT: #93bee2 1px solid;
BORDER-TOP: #93bee2 1px solid;
background-image:url(../Images/bluebuttonbg.gif);
background-color: #e8f4ff;
CURSOR: hand;
font-style: normal;" type=submit value=删除>
</td></tr>
</form>
</table>
</fieldset>
</body>
</html>