Display block instead of list in php

Permalink
I am trying to understand why my php doesn't display the same layout of user input.
For example:
input from user ----

Test cars
Good Price
long term

is displayed in one line

The code I have in PHP for that line in particular is this:
$description = isset($_POST['description'])?trim($sql_link->real_escape_string($_POST['description'])):'';

arybog
 
hutman replied on at Permalink Reply
hutman
Are you using a textarea to get that input? If so you probably need a nl2br around your echo.