how do you have a text box pass its formatting through a form?
as in line breaks and spaces
Form Formatting
Moderator: General Moderators
if you are wanting text entered in a textarea to be displayed on an html page and keep the line breaks, use the nl2br() function on the posted form field.
Code: Select all
<?php
$formatted_text = nl2br($_POST['your_textarea']);
?>