Formatting submitted Data from a field
Posted: Sun Jan 11, 2009 10:15 am
So i've got somewhere, a textfield, where people can write asmuch as they want currently, i will put a limiter of 10,000 characters on though. Now if they put a new paragraph, when its then displayed, i want to display it exactly as they wrote it. It submits into a MySQL database, so say i write:
'My Name is Ashley
And Im 17
And i love this website'
I want it to appear like that, but it appears as :My Name is Ashley And Im 17 And i love this website.
Im assuming i need to add \n to signify a newline each time they hit enter, but when it submits how do i put those \n's in before it submits, and how can i tell where to put them?
Complex, i know, but any help?
'My Name is Ashley
And Im 17
And i love this website'
I want it to appear like that, but it appears as :My Name is Ashley And Im 17 And i love this website.
Im assuming i need to add \n to signify a newline each time they hit enter, but when it submits how do i put those \n's in before it submits, and how can i tell where to put them?
Complex, i know, but any help?