form method="post" action="">
<table width="400" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr>
<td bgcolor="#FFFFFF"><div align="center">查询用户</div></td>
<td height="30" bgcolor="#FFFFFF"><div align="center">
<select name="select">
<option selected="selected"value="all">全部</option>
<option value="userid">用户ID</option>
<option value="username">用户名</option>
</select>
</div></td>
<td bgcolor="#FFFFFF"><input type="text" name="username" size="18"/></td>
<<td bgcolor="#FFFFFF"><input type="submit" name="chaxun"/></td></tr>
</table>
<%
if(db.connect())
{
String sql="select * from users";
if(request.getParameter("chaxun")!=null)
{
if(!request.getParameter("select").equals("all"))
- 1
- 2
- 3
前往页