我做了一个首页上面有个查询ACTION到另一个查询页面,但总也查不到东西----东西确实存在。
然后我把该页面中的查询语句单独拷出来另存为一个文件就能查询出来,不知道为什么?请高手指点。
主页代码:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="gb2312" /> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<title>爱保锐赛车服饰有限公司</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="css/index.css" rel="stylesheet" type="text/css" /> <link href="css/layout.css" rel="stylesheet" type="text/css" />
<!--script src="/js/global.js" type="text/javascript" language="Javascript1.2" charset="utf-8"></script> <script src="/js/globalnav.js" type="text/javascript" language="Javascript1.2" charset="utf-8"></script--> <link href="css/bg.css" rel="stylesheet" type="text/css" /> </head><body><div id="conter"> <div id="top"> <div id="sitmap"> <pre>网站地图 | 中文 | English <img src="images/inquire.gif" alt="查询" width="57" height="22" align="absmiddle" /></pre> <div id="form"> <form name="form1" id="form1" method="post" action="querygoods.asp"> <input name="keyword" type="text" class="input" size="12" /> <input name="Submit" type="image" value="搜索" src="images/go.gif" align="absmiddle" /> </form></div> </div> <img src="images/logo.gif" alt="logo" width="171" height="47" /></div><div id="t-1"><div class="a-1"> <div id="reg" class="reg"><div id="c"> <pre><form name="form2" id="form2" method="post" action=""> 用户名 : <input name="textfield2" type="text" class="input" size="12" /> <span class="suojin">密码</span>: <input name="textfield3" type="password" class="input" size="12" /> <input name="Submit2" type="image" class="regh" value="提交" src="images/login.gif" align="absmiddle" /><img src="images/reg.gif" alt="用户注册" width="97" height="20" class="regh" /></form></pre> </div> </div> <div><img src="images/class.gif" alt="服装分类" width="196" height="126" border="0" usemap="#Map" class="a-11" /> <map name="Map" id="Map"> <area shape="rect" coords="70,38,146,52" href="#" alt="机车运动服装" /> <area shape="rect" coords="72,58,149,72" href="#" alt="汽车运动服饰"/> <area shape="rect" coords="72,77,144,93" href="#" alt="安全防护用品"/> <area shape="rect" coords="73,99,146,112" href="#" alt="户外运动服饰" /> </map> </div></div> <div class="a-2"> <div id="newsimg"><img src="images/f1img.gif" alt="news" width="130" height="90" /> <div class="text-p">图片新闻:赛车</div> </div><div id="xiejiao"></div><div id="news">------</div> </div> <div class="a-3"><img src="images/newsproduct.gif" alt="新品展示" width="220" height="233" /></div> </div><div id="t-2"><div id="t-21"></div> <div id="t-22"></div> </div><div id="t-3"><div id="t-31"></div> <div id="t-32"></div> </div><div id="t-4"> <div id="t-41"><img src="images/s-1.gif" alt="我们的价格" width="205" height="97" /><img src="images/s-2.gif" alt="我们的服务" width="205" height="97" /><img src="images/s-3.gif" alt="联系我们" width="205" height="63" /> <div>联系电话:</div> </div> <div id="t-42"><a href="#"><img src="images/f-1.gif" alt="图标展示" width="201" height="68" border="0" /></a><a href="#"><img src="images/f-3.gif" alt="功能图标" width="197" height="212" border="0" /></a> <a href="#"><img src="images/f-2.gif" alt="11" width="198" height="48" border="0" /></a></div> <div id="t-43"><div class="otherbg">其他商品展示</div> <div class="otherclass">不同类型 不同款式 不同风格 不同用途 供您选择 </div><div id="cp"></div> </div> </div> </div> <div id="foot"> <pre>首页 | 关于爱保锐 | 产品销售 | 客户服务 | 信息反馈 | 材料介绍 | 联系我们 </pre><div class="gotop"><a href="#"><img src="images/top-t.gif" alt="top" width="31" height="14" border="0" /></a></div> </div> </body> </html>
我把其中红字部分拷出来单独做成一个查询页就能查出来不知道为啥????