Passing values to query
I'd like to pass the value from a select box to a query, and have the query return a less than or equal to the selection
(HTML)
<select name="intPrice">
<option value="all">All Price Levels
<option value="100">Under $100</option>
<option value="1000">Under $1000</option>
<option value="10000">Under $10,000</option>
<option value="100000">Under $100,000</option>
</select>
(Where Clause on results page)
sqlText = sqlText & "where products.productPrice <= " & intPrice & " products.catalogID = " & strCat & ""
I think I'm close but any help is appreciated.
Just because you can, it doesn't mean you should
|