Reputation: 3819
I have searched many articles but I could not find one appropriate. I am trying to take input form user a multiple line text and show them as it is. I am using textarea tag, but the page is not working the input values are showed in one line even it I press enter an start a new line.
Please help me fixing this.
Upvotes: 2
Views: 529
Reputation: 1601
Already mentioned nl2br()
is one way;
another way is to echo the output within <pre> .. </pre>
HTML tags.
Upvotes: 2