TextArea Problem

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

Post Reply
stewartrose
Forum Newbie
Posts: 10
Joined: Wed Nov 12, 2008 12:35 am

TextArea Problem

Post by stewartrose »

Morning Team,

When using the following:
<tr>
<td valign="top"><p>Address:</p></td>
<td colspan="3"><textarea name="address" cols="40" rows="5"></textarea></td>
</tr>

If you print out from $address all the lines entered are put on a single line, is there a way to make it display as typed in please...

All the best from Alan
aneesme
Forum Newbie
Posts: 9
Joined: Wed Jan 27, 2010 4:22 am
Location: Bangalore

Re: TextArea Problem

Post by aneesme »

Try this.

Code: Select all

nl2br($address);
Best,
Anees
Amoeba Solution Kiosk
stewartrose
Forum Newbie
Posts: 10
Joined: Wed Nov 12, 2008 12:35 am

Re: TextArea Problem

Post by stewartrose »

Hi Anees,

Thank you very much will give that a try

All the best from Alan
Post Reply