I'm trying to sort out something for a website that just has me stumped. I'm trying to sort out a page with a preview section to show you how an entry would appear. I need it to carry values in text boxes from the original page to the preview one. This works fine, but whenever anything with a space in it is entered, everything after the space mark doesn't appear in the new text box.
I'm not explaining this very well so I made
a quick example. This is on an asp page but as far as I can tell, that shouldn't make a difference. here is the coding for the page:
<html>
<head> Example
</head>
<body>
<form action="example.asp" method="post" name="example" id="example">
<% response.write(request.form("txtExample") & "<br>")
If (Request.form("btnSub")="Submit") then %>
<input name="txtExample" type="text" size="30" id="txtExample" value=<%=request.form("txtExample")%>>
<% Else %>
<input name="txtExample" type="text" size="30" id="txtExample">
<% End If %>
<input name="btnSub" type="submit" id="btnSub" value="Submit">
</body>
</html>