http://ca.php.net/nl2br
http://ca.php.net/manual/en/function.wordwrap.php

On Mar 7, 4:59 pm, bob <[EMAIL PROTECTED]> wrote:
> In a textarea, how do you retain the spacings and carriage returns when you
> save to the database or output in the view?
>
> for example, if i enter
> "first line
>
> third line"
>
> I want to output to the user keeping all the carriage returns. But right
> now, it just outputs "first line           third line"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to