java编写的程序,搜索框如何实现搜索功能
输入山和福州,只输出山的内容access数据库:搜索框程序:<%@pagecontentType="text/html;charset=GB2312"%><html><h...
输入 山和福州,只输出山的内容
access数据库:
搜索框程序:
<%@ page contentType="text/html;charset=GB2312" %><html><head><title>Search Map</title></head><body><form action="search.jsp" method="POST" ><table cellpadding="0" cellspacing="0" border="1" width="260" height="200"><tr><td height="6"></td></tr><tr><td align="center" height="46" bgcolor="#EFEFEF"><b><font size="4">移动网络地图服务搜索</font></b></td></tr><tr><td height="6"></td></tr><tr><td align="left" height="46" bgcolor="#EFEFEF"><input name="keywords" size=20 maxlength=30 style="text: left"><input type="submit" value="搜索" name="search" size="10"><input type="reset" value="取消" name="reset" size="10"></td> </tr> <tr> <td height="6"></td> </tr> <tr> <td valign="top" height="85" bgcolor="#EFEFEF"> <p style="margin-top: 0; margin-bottom: 0"> <input type="radio" name="Rdo_Location" value="RdoGetLocation" checked><span lang="zh-cn">位置</span>=<input name="Location" size=20 maxlength=20><p style="margin-top: 0; margin-bottom: 0"> <p> <input type="radio" name="Rdo_Location" value="RdoGetLonLat" ><span lang="zh-cn">经纬度</span>=<input name="LonLat" size=20 maxlength=20><p style="margin-top: 0; margin-bottom: 0"> <p> </tr></table></form></body></html>
调用数据库程序:
因字数限制贴不上来了 展开
access数据库:
搜索框程序:
<%@ page contentType="text/html;charset=GB2312" %><html><head><title>Search Map</title></head><body><form action="search.jsp" method="POST" ><table cellpadding="0" cellspacing="0" border="1" width="260" height="200"><tr><td height="6"></td></tr><tr><td align="center" height="46" bgcolor="#EFEFEF"><b><font size="4">移动网络地图服务搜索</font></b></td></tr><tr><td height="6"></td></tr><tr><td align="left" height="46" bgcolor="#EFEFEF"><input name="keywords" size=20 maxlength=30 style="text: left"><input type="submit" value="搜索" name="search" size="10"><input type="reset" value="取消" name="reset" size="10"></td> </tr> <tr> <td height="6"></td> </tr> <tr> <td valign="top" height="85" bgcolor="#EFEFEF"> <p style="margin-top: 0; margin-bottom: 0"> <input type="radio" name="Rdo_Location" value="RdoGetLocation" checked><span lang="zh-cn">位置</span>=<input name="Location" size=20 maxlength=20><p style="margin-top: 0; margin-bottom: 0"> <p> <input type="radio" name="Rdo_Location" value="RdoGetLonLat" ><span lang="zh-cn">经纬度</span>=<input name="LonLat" size=20 maxlength=20><p style="margin-top: 0; margin-bottom: 0"> <p> </tr></table></form></body></html>
调用数据库程序:
因字数限制贴不上来了 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询