源代码没有
不过很简单的
可以用JAVASCRIPT
按钮都写到一个form里
action="";function test1()
{
formname.action="add.jsp";
document.form1.submit();
}
function test2()
{
formname.action="delete.jsp";
document.form1.submit();
}
<input type="button" name="add" value="test3" onclick='test1()'>
<input type="button" name="delete" value="test4" onclick='test2()'>
不过很简单的
可以用JAVASCRIPT
按钮都写到一个form里
action="";function test1()
{
formname.action="add.jsp";
document.form1.submit();
}
function test2()
{
formname.action="delete.jsp";
document.form1.submit();
}
<input type="button" name="add" value="test3" onclick='test1()'>
<input type="button" name="delete" value="test4" onclick='test2()'>
在sql里用个循环或用sql语句:
delete from databasename where id in('"+id+"');
<input type=checkbox name="id" value="<%rs.getInt("id")%>">