I tried this but it's not chaning new lines to <br> <textarea name="addesc" id="addesc"><?php echo $data['addesc']; ?></textarea> Code (markup): $data['addesc'] = preg_replace("/\r\n|\r/", "<br />", $_POST["addesc"]); $data['addesc'] = trim($data['addesc']) Code […] See original post by invalid@example.com (qwikad.com)