Page 1 of 1

TextArea Problem

Posted: Wed Jan 27, 2010 4:25 am
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

Re: TextArea Problem

Posted: Wed Jan 27, 2010 5:15 am
by aneesme
Try this.

Code: Select all

nl2br($address);
Best,
Anees
Amoeba Solution Kiosk

Re: TextArea Problem

Posted: Wed Jan 27, 2010 6:19 am
by stewartrose
Hi Anees,

Thank you very much will give that a try

All the best from Alan