Text area display line breaks

Hi there.

I have a text area on a form the id for this is TextArea1

I want the result to be displayed on separate lines.

If i type in

This is wording on line 1
This s wording on line 2
This is wording on line 3
This is wording on line 4

at moment it shows

This is wording on line 1This s wording on line 2This is wording on line 3This is wording on line 4

In my php code i have

if(isset($_POST[“invoiceitem1”])){$invoiceitem1 =($_POST[“invoiceitem1”]);}

In my page code i have

if($sum1!=""){ echo “$invoiceitem1”;

I think this is what you are asking about?

nl2br()

1 Like

yes i got it to work thanks for your time

Sponsor our Newsletter | Privacy Policy | Terms of Service