如果是提交到不同的页面,我只会这么做了:
<html>
<head>
<script type="text/javascript"></script>
</head>
<BODY>
<form method="post">
<input type="button" onclick="this.form.action='a.html';this.form.submit()" value='a.html'>
<input type="button" onclick="this.form.action='b.html';this.form.submit()" value='b.html'>
</form></BODY>
</html>
<html>
<head>
<script type="text/javascript"></script>
</head>
<BODY>
<form method="post">
<input type="button" onclick="this.form.action='a.html';this.form.submit()" value='a.html'>
<input type="button" onclick="this.form.action='b.html';this.form.submit()" value='b.html'>
</form></BODY>
</html>
页面上的checkbox作为参数提交后是怎么读取值的? 比如
<input name="dateselect" type="checkbox" value="">
提交到jsp页面后 request.getParameter("dataselect") 这是一个什么类型的值