• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to change ENTER into <br /> on form_textarea??

#11
[eluser]gomji9star[/eluser]
nl2br it's a php function which is provide this kind of facility

#12
[eluser]atlanta[/eluser]
Code:
&lt;?php
echo nl2br("foo isn't\n bar");
?&gt;

foo isn't<br />
bar

hopefully that helps.
Source http://us3.php.net/nl2br

and to help if you do php.net/function_name

it will give you an explanation of the function


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.