PHP - Processing each line of a textarea form in a script
<p>I've learned it's possible to trim a string from a textarea and put break tags after it, so each sentence written at a new line in the textbox will also be written at a new line in the PHP file.</p>

<p>This is the snippet:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

&lt;?php
$text = trim($_POST['textarea']);
$text = nl2br($text);
echo $text;
?&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>The thing is that my true intentions are:</p>

<ol>
<li>Use the contents of each line in the textbox for a certain script</li>
<li>Print the contents of each line with the results from the script added all seperated by lines.</li>
</ol>

<p>Thanks in advance.</p>
