'''how i am labeling my select pulldown, with the data for the option
value:
<select name=Category>
response.write "<option value=" & RSCATEGORY("catname") & ">" &
RSCATEGORY("catname") & "</option>"
'''how I am calling the category name on the next page
RSEVENTS("category") = Server.URLencode(request.form("Category"))
TIA for help
NS
You need to put the category name inside quotes, either single or double, as
it's the browser that is truncating the category name if there is a space
inside it as without quoting it has to assume that anything after the space
is starting a new attribute.
<select name=Category>
<%
response.write "<option value=""" & RSCATEGORY("catname") & """>" &
RSCATEGORY("catname") & "</option>"
%>
Note that I've added "" before the closing " in the first string part, and
after the opening " for the second string part. Doubling up double quotes
inside a string represents a single literal double quote within the string.
--
Dan
> <select name=Category>
> <%
> response.write "<option value=""" & RSCATEGORY("catname") & """>" &
> RSCATEGORY("catname") & "</option>"
> %>
<%
response.write "<option value='" & RSCATEGORY("catname") & "'>" &_
RSCATEGORY("catname") & "</option>"
%>
> Note that I've added "" before the closing " in the first string part,
> and after the opening " for the second string part. Doubling up double
> quotes inside a string represents a single literal double quote within
> the string.
Much easier way to visualize mistakes:
<select name='Category'>
<option value = '<% = RSCATEGORY("catname") %>' >
<% = RSCATEGORY("catname") %></option>
</select>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)