|
Spooky -> RE: Multiple selections in drop down list (3/8/2002 23:17:21)
|
The trick is to use "IN" as a query. It does really demand specific column values, as you cant do a LIKE IN() So ideally the values will be short text or numeric. The numeric syntax is "....where column IN (1,2,3,4,5) " Text : "....where column IN ('a','b','c','d') " The DRW syntax would then be : "....where column IN (::Input::)" Now, the problem lies in passing text. Normally a multiple text box with text values will pass a comma delimited string. While this is great for numbers, it is not good for text. So what we need to do, is fool the DRW by enclosing our text VALUES in quotes. <option value=" ' Text ' ">Option Text</option> When a user selects multiple text items, they are passed to the DRW with quotes, all ready for the IN query. §þððk¥ Database / DRW Q & A VP-ASP Shopping cart Spooky Login
|
|
|
|