EasyCFM.COM ColdFusion Forums / Coding Help! / Replacing the enter keystroke with a BR tag.

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Replacing the enter keystroke with a BR tag.

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts first

Tucker
11-01-2002 @ 4:59 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 3
Joined: Nov 2002

I have only just started using colfusion and got into complete confusion.

I have created a coldfusion form which enter into a database without a problem, how do I replace the <br> tag so that an automatic line break is inserted when the user hits the enter key??

Where does the code fit in the script??

Webmaster
10-09-2002 @ 8:33 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4542
Joined: Jan 2002

You're welcome, and thanks for using the site Wink  Remember tell your friends!

Thanks,
Pablo Varando
EasyCFM.COM, LLC.

Webmaster
10-08-2002 @ 10:45 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4542
Joined: Jan 2002

To go FROM <BR> to ENTER you would do this:

#ReReplaceNoCase(OriginalValue, "<BR>", "#chr(13)##chr(10)#", "ALL")#

To go from ENTER to <BR> you would do this:
#ReReplaceNoCase(OriginalValue, "#chr(13)##chr(10)#", "<BR>" "ALL")#

Let me know if you need further assistance...

Thanks,
Pablo Varando
EasyCFM.COM, LLC.


Website Designed and Developed by Pablo Varando.