Web Development Thread, Carriage return to </ br> in Coding and Web Development; I'm just tinkering about with something in ASP and was wondering if there was a simple way to do this:
21st October 2008, 01:12 PM #1
Carriage return to </ br>
I'm just tinkering about with something in ASP and was wondering if there was a simple way to do this:
A user types into a text box a couple of paragraphs (which are separated by some carriage returns). The user then submits it to a database but the carriage returns are gone.
I need a way to tell it for each carriage return put a <br /> in place.
I'm sure there is a simple solution and someone will sort me out
Last edited by Hightower; 21st October 2008 at 01:25 PM.
Reason: Got the tag wrong... Doh!
IDG Tech News
21st October 2008, 01:21 PM #2
21st October 2008, 01:23 PM #3
Cheers Craig - as soon as you posted it it jogged my memory.... Been a while.
21st October 2008, 10:18 PM #4
Presumably you're going to present it back in HTML at some point; you could also store it literally and use <pre></pre> around it.
By Norphy in forum Hardware
Last Post: 4th January 2010, 02:45 PM
By FN-GM in forum EduGeek.net Site Problems
Last Post: 13th March 2009, 05:32 PM
By mcheung0 in forum Scripts
Last Post: 16th September 2008, 10:32 PM
By elsiegee40 in forum Comments and Suggestions
Last Post: 10th June 2008, 09:55 PM
By ChrisH in forum Hardware
Last Post: 25th August 2006, 06:12 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)