|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
no breaks in my posts
alright so here is the problem.
I have a site, it has a news system and a few other things that users can post to. the psoting is good, except that it doesn't put breaks in the text. I hit enter and psot, and it stays all on one line. like this: Here is the text this would be here is the text I thought about using my ereg replace that iw as using to put in bold and italics, by replacing [br] with <br> but that's too much work. It is put into the database as longtext : 9999 why does it do this? and what is the best way to do it if this isn't?
__________________
hey it's the CHARKING |
|
#2
|
|||
|
|||
|
I suspect that there are breaks in the text, but when it gets re-displayed in HTML, they don't show because they have to be <br>s. You could try replacing \n (newline character) with <br> to see if that does it for you.
Not sure if you want to do this when it gets entered into the database, or rather when it gets pulled out and displayed. |
|
#4
|
|||
|
|||
|
Quote:
sweet
__________________
Hungry for Code Programming works best with a team over one single person
|
|
#5
|
|||
|
|||
|
thanks
once again devarticles is the greatest place ever. thanks guys that totally fixed it.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > no breaks in my posts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|