|
Posted by Ja NE on 10/25/05 14:42
Ja NE <hidden@mail.zz> wrote:
....ok.
have it ;-))
$tekst = preg_replace("/\r\n/", "\n", $tekst);
$tekst = preg_replace("/\n/", "</p>\n<p>", $tekst);
thank you "manual" ;-)
> well, it is time for some fine tuning of my application, after adding
> that banner script for which I needed percentage solution, I would like
> to fix my forum scripts...
> when someone write some text in form's textarea and then
> enter
> new line (btw, is that \r or \n or combination?) I'm not "getting" that
> new line but space. what can I do to "recieve" and store (in mysql db)
> text with newlines instead of spaces. and, even better, to replace that
> newline with </p>\n<p>...
>
> tnx again
--
Ja NE
http://fotozine.org/?omen=janimir
--
Navigation:
[Reply to this message]
|