Chomauk
Programmer
- Jun 8, 2001
- 130
1.) I'm getting a cookie value (i.e. John Smith) and storing it in a variable:
<%
Dim strName
strName = Request.Cookies("SavedLogin"("Name"
%>
2.) To prove I'm not crazy I verify the variable is what is should be and it is displayed correctly as "John Smith" using the following code:
<% Response.Write strName %>
3.) Here's where I'm am going crazy. The two below input statements show "John" but "Smith" is truncated:
<INPUT TYPE="Text" Name="Name1" Value=<% Response.Write strName%> >
<INPUT TYPE = "text" Name = "Name2" Value= <%=strName%>>
4.) If I hard-code something like:
<INPUT TYPE = "text" Name = "Name2" Value= "John Smith">
It comes out correctly.
Why is the variable/INPUT truncating everything after the
first space is located??? How can I fix this???
Please help me. Thanks
<%
Dim strName
strName = Request.Cookies("SavedLogin"("Name"
%>
2.) To prove I'm not crazy I verify the variable is what is should be and it is displayed correctly as "John Smith" using the following code:
<% Response.Write strName %>
3.) Here's where I'm am going crazy. The two below input statements show "John" but "Smith" is truncated:
<INPUT TYPE="Text" Name="Name1" Value=<% Response.Write strName%> >
<INPUT TYPE = "text" Name = "Name2" Value= <%=strName%>>
4.) If I hard-code something like:
<INPUT TYPE = "text" Name = "Name2" Value= "John Smith">
It comes out correctly.
Why is the variable/INPUT truncating everything after the
first space is located??? How can I fix this???
Please help me. Thanks