Line breaks in a textarea using php

Form submit to post method after line break using nl2br() function. When displaying text, use nl2br() to convert newlines to tags. so now follow below example. You may also like Line break in a textarea and create array using php and How to create text editor in textarea using jquery.

Code

$Item           = $_POST['item'];
$getitem        = nl2br($Item);

Leave a Reply

Your email address will not be published. Required fields are marked *