Retaining carriage returns upon db entry
Posted 08 June 2006 - 06:24 PM
I'm having a (noobish) problem that I hope someone can help with.
I have written a small script to insert information from a form and insert it into the database, which seems to work fine, and I can get another page to echo out the information. The problem I'm having is I'm using a textarea tag on my form and it doesn't retain any of the carriage returns when the contents of the text area are submittedby the form so when I echo the information out of the database on another page, its all on one line.
I know why it does this but can't really think of a way around this. Anyone got any ideas, constructive help is much appreciated.
Thanks in advance
Rich [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
Posted 08 June 2006 - 06:36 PM
Posted 08 June 2006 - 06:47 PM
Thanks for the quick turnaround, works perfectly
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users