Thanks alot! I didn't do that because I wasn't aware of the nl2br()
function.
I just taught myself php last weekend. There's still plenty for me to
learn.
"Yz James" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Christopher,
>
> Why not use nl2br() and t
Hi Christopher,
Why not use nl2br() and trim() ?
$string = trim($string); // Clear any unwanted white space (trailing and
leading);
$string = nl2br($string); // Add line breaks where necessary
echo "$string"; // Voila
James
"Christopher Kaminski" <[EMAIL PROTECTED]> wrote in message
[EMAIL PR
I'm trying to write a simple weblog script, but I've encountered a
perplexing problem. I'm sure I'm overlooking something simple.
I'm trying to take form input, parse it, and wrap it in tags.
The problem is removing extra carriage returns. I'm sure there's a problem
with the "if ($sentence !=
3 matches
Mail list logo