php format text area script created in Dreamweaver
<p>G'Day </p>

<p>I have a script that was created from dreamweaver and I do not know much about the nl2br. I Simply want to format the text area when the user creates a new paragraph...</p>

<p>I know the correct function is nl2br() but not how to implement it. </p>

<p>The textarea is description.</p>

<p>i.e.</p>

<p>Yada Yada Yada</p>

<p>Yada Yada Yada</p>

<p>Yada Yada Yada.</p>

<p>The code attached is an edited version of the whole code. </p>

<pre><code>    if ((isset($_POST["MM_insert"])) &amp;&amp; ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO attendance (file_ref, attendance, author, attendance_with_name, `attendance_with_company`, `date`, time_commenced, time_completed, `description`) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",

GetSQLValueString($_POST['description'], "text"));

&lt;td&gt;&lt;textarea name="description" cols="80" rows="20" size="500" &gt;&lt;/textarea&gt;&lt;/td&gt;
</code></pre>

<p>Can anyone help?</p>

<p>Thanks</p>
