回 帖 发 新 帖 刷新版面

主题:求助:请求指点

我想做一个通过选择相应的价格范围菜单,就可以搜索到相应的产品,但上面的程序,老是出现问题,不是我想要的结果,应该怎么解决呢,请高手指点。谢谢

----    <td align="center">
              <select name="Price" style="width:141px;font-size: 9pt; font-family:arial;">
    <option value="">Price </option>
    <option value="<=10" <% if request("Price")="<=10" then response.Write(" selected") %>>10</option>
    <option value="<=20" <% if request("Price")="<=20" then response.Write(" selected") %>>20</option>
    <option value="<=30"<% if request("Price")="<=30" then response.Write(" selected") %>>30</option>
              </select></td>

----------------------------------

回复列表 (共4个回复)

沙发

那一行出问题(用另一种颜色标出或者在那一行后面注上)?出什么问题?这个你需要告诉别人,别人才能帮你解决。

板凳

是它调用不了数据库中的数据,比如我想找10元以下的,那选择第一个,没有显示,反而选择第二个会出来,,又或者;选择10元以下跟20元以下30元以下,搜索的结果都是一样的,

3 楼

select 语句估计写的有问题!拿来参考下!

4 楼

<td align="center">
              <select name="Price" style="width:141px;font-size: 9pt; font-family:arial;">
    <option value="">Price </option>
    <option value="<=10" <% if request.Form("Price")="<=10" then response.Write(" selected") %>>10</option>
    <option value="<=20" <% if request.Form("Price")="<=20" then response.Write(" selected") %>>20</option>
    <option value="<=30"<% if request.Form("Price")="<=30" then response.Write(" selected") %>>30</option>
              </select></td>

我来回复

您尚未登录,请登录后再回复。点此登录或注册