<script language="javascript">
function CheckAll(form)
{ ///定義函數checkall
for (var i=
///循環
{
///把表單裡的內容依依付給e這個變量
var e = form
if (e
e
}
}
</script>
<form id="form
<table width="
<tr>
<td width="
<td width="
</tr>
<tr>
<td><input name="id" type="checkbox" id="id" value="
<td>
</tr>
<tr>
<td><input name="id" type="checkbox" id="id" value="
<td>
</tr>
<tr>
<td><input name="id" type="checkbox" id="id" value="
<td>
</tr>
<tr>
<td><input name="id" type="checkbox" id="id" value="
<td>
</tr>
<tr>
<td><input name="id" type="checkbox" id="id" value="
<td>
</tr>
<tr>
<td><input name="id" type="checkbox" id="id" value="
<td>
</tr>
<tr>
<td><input name="id" type="checkbox" id="id" value="
<td>
</tr>
<tr>
<td><input name="id" type="checkbox" id="id" value="
<td>
</tr>
<tr>
<td><input name="id" type="checkbox" id="id" value="
<td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="刪除" /></td>
</tr>
</table>
</form>
如需傳值到另一文件
delete
<!
<%
Num=request
if Num=
Response
Response
end if
ids=request
sqlStr="Delete * From indexad Where id in ("&ids&")"
conn
Response
Response
%>
方法
<%
Num=request
if Num=
Response
Response
end if
for i=
set rs=Server
sql="Select * from News where NewsID="&request
rs
if not rs
conn
conn
else
Response
Response
end if
rs
set rs=nothing
next
Response
Response
%>
From:http://tw.wingwit.com/Article/program/net/201311/14421.html