Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html with asp ...

Status
Not open for further replies.

fretn

Programmer
Jan 10, 2002
6
BE
i made a guestbook with asp,

but my problem is: how can i put the br tag when the user takes a new line ????

example:

the user typed this:

hello,

how are you

bye

and in the guestbook it looks like this:

hello,how are you bye

thanks, fretn
 
You can use the VBscript function
[tab][tab]replace(stringIn, chr(13),&quot;<br>&quot;)
and that returns a string that has had all the chr(13) carriage returns replaced with <br> tags.

There are a couple of other methods in the forum if you want to look through some old posts. But this is the method I use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top