$ad_text=wordwrap(nl2br($_POST['annonsera_text']), 45, '<br />\n');
Any idea why the above does display in a long string?
Form method='POST'
, and enctype='multipart/form-data'
and textarea wrap='hard'
I want the displayed text-area to look exactly the same as when the user entered the text in it... thanks...
UPDATE:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\nl
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
OUTPUTS this:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Using wordwrap function in php...
It doesnt matter if I set the wrap="hard" in html either.