View Full Version : How to replace enter to <br/>
Bakusozoku
03-06-2006, 10:38 AM
Well, I have the following code:
<%
dim x
x="k"
response.write Replace(x,"k","<br/>")
%>
now how can I change it so instead of k it will replace enter to <br/>?
SpirtOfGrandeur
03-06-2006, 12:28 PM
vbCrLf
Bakusozoku
03-06-2006, 04:24 PM
<form method="post">
<textarea name="thing"></textarea>
<input type="submit">
</form>
<%
dim text
text=request.form("thing")
text=Replace(text,"vbCrLf","<br/>")
response.write text
%>
If i type in the text area:
1
1
it shows 1 1 =\
degsy
03-06-2006, 04:57 PM
text=Replace(text,vbCrLf,"<br>")
or for XHTML
text=Replace(text,vbCrLf,"<br />")
Bakusozoku
03-06-2006, 05:50 PM
ah, I see, thnkas :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.