Multiline Textareas

Finding & Replacing New lines

So that you could make your own web pages at math warehouse, I needed to create the PHP code to deal with multi line textareas that include line breaks.

The actual php code
//whatever you want to replace new lines with
$newLineCode = " **aNewLine**";
$message = $_POST['myTextArea'] ; //unadulterad text we got via Post
$modifiedTextAreaText = ereg_replace( "\n", $newLineCode, $message);
echo " Result of Code Snippet " . $modifiedTextAreaText ;