Tuesday, November 6, 2012

Re: <pre> tag in a form textarea...?

Thank you MaJerle,... it works,... 


On Tuesday, November 6, 2012 7:03:59 AM UTC-8, MaJerle.Eu wrote:
i don't know if i understand you good, so i hope this is was you need:

use nl2br(); function when you print code

--
Lep pozdrav, Tilen Majerle



2012/11/6 Chris <chri...@yahoo.com>
hi guys,... I'm using cake 1.3,... how can I add <pre></pre> tags in a form textarea so it can count on return "Enter" ?? 
cause of display I have in a view is <pre>some content submitted by form</pre> and the form I have is this: 
<p style="display: block; font-size: 1.2em; text-align: left;">
<?php  echo $this->Form->textarea('content', array('rows' => '4')); ?>
</p> 

thanks in advance,... 
chris

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake...@googlegroups.com.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate