I have a form with a select box:
<select name="city" multiple>
<option value="dallas">Dallas</option
<option value="houston">Houston</option>
In the response page i need to run a query filtering all of the selected chosen cities. What I need to do is something like this:
dim cityFilter
cityFilter=request("city"
customerList.Source = "SELECT * FROM customerInfo WHERE City=" & cityFilter
The problem is with the multiple values.
Since cityFilter is coming up as "dallas, houston", I don't know how to form the sql statement.
Any help please?
<select name="city" multiple>
<option value="dallas">Dallas</option
<option value="houston">Houston</option>
In the response page i need to run a query filtering all of the selected chosen cities. What I need to do is something like this:
dim cityFilter
cityFilter=request("city"
customerList.Source = "SELECT * FROM customerInfo WHERE City=" & cityFilter
The problem is with the multiple values.
Since cityFilter is coming up as "dallas, houston", I don't know how to form the sql statement.
Any help please?