How do you save text box input in SQL and redisplay in label? - TechRepublic
Question
May 6, 2011 at 09:41 AM
brian

How do you save text box input in SQL and redisplay in label?

by brian . Updated 15 years, 1 month ago

I have a SQL DB with column that is called letter and set to TEXT as the type. I want to be able to enter in a multiline textbox the letter (including returns and whatnot) then save it to the DB and when I load a page, get it to display the saved field text correctly with all of the returns and whatnot. Basically heres an example: denotes where Enter is pressed

Entered into the textbox
Hi,
how are you? I am well, just trying to figure this out.
have a nice day!

When read from DB, this is what is shown written to the label:
hi,how are you? I am well, just trying to figure this out.Have a nice day!

I notice that in the DB Table, it puts in two square boxes or somehting like that where Enter has been pressed. I am using this for an internal automated e-mail that I have created, but need this last piece to automate it from our user DB. Help is appreciated!!!!

THUMBS FOR HELPFUL ANSWERS!!

This discussion is locked

All Comments