I have an ASP page that has a listbox control that is populated with a list of 'clients' and 'title' by the following code.
---------------------------------------------------
Set rs = Server.CreateObject("ADODB.Recordset"
conn = "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=C:\db1.mdb"
sql = "SELECT [Title] FROM [Client Table] ORDER BY [Title] "
rs.open sql, conn
Do Until rs.EOF
dim StringS
stringS = stringS & "<option value=" & rs("Title"
rs.MoveNext
Loop %>
<select name="Operation1" size="1">
<option value="">Select Value</option>
"<%=stringS%>"
</select>
<SCRIPT LANGUAGE="VBScript">
MsgBox request.Operation1.Value & ": " & "<%=stringS%>"
</SCRIPT>
-----------------------------------------------------------
The list box is populated correctly, but I find that when I use the 'Post' method to send a user selection to next page only the first word in a multiword selection is sent. When I check with a 'MsgBox' I find that the 'request.Operation1.Value' returns only the first word in a multiword selection while the '<%=strings%>' returns the entire string.
I want to be able to have the user's selection from the combobox be complete and not only the first word. What do I have to do?
Thanks for any help.
Charlix