87,923
社区成员
发帖
与我相关
我的任务
分享
$fname="IP.txt";
$fcon=file_get_contents($fname);
$arr=explode(";", $fcon);
$arrlength=count($arr)-1;
echo "<table>";
for($i=0,$j=0;$i<$arrlength;$i++,$j++)
{
echo "<tr>";
echo"<td >";
echo $arr[$i];
echo"</td>";
echo"<td><button id='ip_nav_$j' onclick='dis_bloc(this.id)'>dis block </button></td>";
echo"</tr>";
}
echo"</table>";
}
<html>
<head>
<title>Block</title>
<script type="text/javascript">
function dis_bloc(id)
{
document.getElementById(id).
}
</script>
</head>
<body>
<input type="text" name="ip">
<input type="button" value="add to block">
</body>
</html>