I have a page with multiple select boxes that the user will use to refine the results on the page. The form uses method="post".
How do I make sure a select box has been selected?
Here's an example of a select box:
<select name="category">
<option value="">All</option>
<option value="23">Category Name</option>
</select>
Here's an example of what I'm trying to do in ASP:
If len(Request.Form("category")) > 1 Then
Do This
End If
It's not working. I get a Syntax Error. Any help?
How do I make sure a select box has been selected?
Here's an example of a select box:
<select name="category">
<option value="">All</option>
<option value="23">Category Name</option>
</select>
Here's an example of what I'm trying to do in ASP:
If len(Request.Form("category")) > 1 Then
Do This
End If
It's not working. I get a Syntax Error. Any help?