I'm guessing this is something you can do in PHP. What I want is to get the text in a textfield when the submit button is pressed and convert all the newlines into
<br>'s.
Help, please?
See Question&Answers more detail:osI'm guessing this is something you can do in PHP. What I want is to get the text in a textfield when the submit button is pressed and convert all the newlines into
<br>'s.
Help, please?
See Question&Answers more detail:osnl2br
would do what you want, I think.
<?php
$str = "
foo
bar";
echo nl2br($str);
Output:
<br />
<br />
foo<br />