I have a validation page that will redirect the user to the forms page if they have left out any required data.
<%
if ErrorMsg = "" then
Finish processing data ...
else
CopyFieldsToSession
Response.Redirect "DataInput.asp"
end if
%>
I have copied all of the fields to session variables so I can re-populate the form so the user doesn't have to re-enter it. The problem I am having is if there is a space in any of my fields when I try printing out my session variable only the first part of the variable is printed.
eg. Full Name: Jane Doe
DataInput.asp
...
<% for i = 1 to count %>
<input type="text" name="Fullname<%=i%>" value=<%=session("iname" & i)%>>
<% next %>
...
Output: Jane
My output is only Jane the Doe is missing. I have never ran into this problem before. I have tested on all of the fields that can have spaces in them (i.e. address, phone, etc) and they all fail when I use the Response.Redirect.
If all the data is valid the form processes fine to the next
page where the full name is printed fine??
Any thoughts??
<%
if ErrorMsg = "" then
Finish processing data ...
else
CopyFieldsToSession
Response.Redirect "DataInput.asp"
end if
%>
I have copied all of the fields to session variables so I can re-populate the form so the user doesn't have to re-enter it. The problem I am having is if there is a space in any of my fields when I try printing out my session variable only the first part of the variable is printed.
eg. Full Name: Jane Doe
DataInput.asp
...
<% for i = 1 to count %>
<input type="text" name="Fullname<%=i%>" value=<%=session("iname" & i)%>>
<% next %>
...
Output: Jane
My output is only Jane the Doe is missing. I have never ran into this problem before. I have tested on all of the fields that can have spaces in them (i.e. address, phone, etc) and they all fail when I use the Response.Redirect.
If all the data is valid the form processes fine to the next
page where the full name is printed fine??
Any thoughts??