I have a form with a textarea and I want to preserve line breaks entered by the user when outputting the content.
For exemple, if I write in textarea :
You keep output in textarea as it is. You would receive input as a string output that string(write to file) that string adding textarea to the input string.
string(write to file)
for eg. ". $txt .""; $file = fopen("file.html","a+"); fwrite($file, $txt1); fclose($file); ?>