Hi all--
I am trying to handle a series of indexed values passed via "post" from
a form on an ASP page. Could someone explain why the following code
separates variables with "<br>" but seems to fail with ", "? When I
change the line indicated by "<===****" I only get the first value.
Interestingly, changing "<br>" to "<, >" gives me "[value]<, >[value]<,
>[value]<, >".
Result (separating with "<br>"):
"Value list: 3
5
7"
Result (separating with ", "):
"Value list: 3"
And how I can construct a variable in the format "[value], [value],
[value], "?
Thanks!
steve
===== code from ASP file ====
<%option explicit%>
<html>
<body>
<%
dim lngTotal, strSelected, i
lngTotal = Request.form("SelCat").Count
strSelected="Value list: "
For i = 1 To lngTotal
strSelected=strSelected & Request.form("SelCat")(i) & "<br>" <===****
Next
Response.Write("<br>")
response.write(strSelected)
%>
</body>
</html>