PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
eshban
Forum Contributor
Posts: 184 Joined: Mon Sep 05, 2005 1:38 am
Post
by eshban » Wed Sep 27, 2006 5:59 am
hi,
can anybody tell me that how to break line in textarea.
i m doing like this but it shows <br> as string.
<textarea name="recreation_programs" readonly rows="10" cols="35">
Code: Select all
<?
$x = 0;
while($x < $no_of_dang_community){
print $result_dang_community[$x]['recreation_programs'].'<br/>';
$x++;
}
?>
</textarea>
Output:
tryt <br/> rtyryry5464 <br/> dasdaaaaaaaaa <br/> dasdaaaaaaaaa <br/>
blacksnday
Forum Contributor
Posts: 252 Joined: Sat Jul 30, 2005 6:11 am
Location: bfe Ohio :(
Post
by blacksnday » Wed Sep 27, 2006 6:03 am
could be any of the below:
eshban
Forum Contributor
Posts: 184 Joined: Mon Sep 05, 2005 1:38 am
Post
by eshban » Wed Sep 27, 2006 6:13 am
i have already tried it
but it doesnot work
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Wed Sep 27, 2006 6:18 am
Code: Select all
<?php
$x = 0;
while($x < $no_of_dang_community){
print $result_dang_community[$x]['recreation_programs'] . "\n";
$x++;
}
?>
blacksnday
Forum Contributor
Posts: 252 Joined: Sat Jul 30, 2005 6:11 am
Location: bfe Ohio :(
Post
by blacksnday » Wed Sep 27, 2006 6:20 am
edit... astions beat me
eshban
Forum Contributor
Posts: 184 Joined: Mon Sep 05, 2005 1:38 am
Post
by eshban » Wed Sep 27, 2006 6:26 am
thnax budyy...................
it is working........................ nice.....
but wats the reason when i used single quote instead of double quote