I am making a forum with php (www.vladibo.f2s.com/a). How can I keep new lines entered in my text input. If I just use tag <PRE I meet the problem that if there is no end of the line the row becomes too long.
What is the other way?
Assuming you are talking about <textarea> inputs, try:
$text = ereg_replace("\n", '<br>', $text);
OR
read up on nl2br()
--ph
... and if that doesn't work, check if textarea wrap is set "physical". This would insert the \n characters.
<textarea ... wrap=physical>
matto
Thank you very much guys!