Welcome visitor
* Login
* Register
It is currently May 26th, 2019, 3:10 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Server Side » PHP



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  <br /> on PHP
PostPosted: March 12th, 2009, 3:26 am 

Posts: 117
Hi,

What can I do to show the text from a text-area with the break-lines and not just a single line? I've tried both htmlentities() and htmlspecialchars() and nothing.

Thanks.


Top
 Profile  
 
  Re: <br /> on PHP
PostPosted: March 12th, 2009, 3:28 am 

Posts: 96
<?php
echo nl2br($textarea);
?>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Server Side » PHP


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron