i'm trying to make the form create a <BR> everytime someone presses enter.. here is what i think:
i found a neat little trick but i'm not sure what the name is for an "enter" (like if someone just pressed "Enter", instead of using preformatted text)
$content = str_replace("What goes here?", "<BR>", $content);str_replace("\r\n", "<br />", $string);PHP Function: nl2br() (<!-- m --><a class="postlink" href="http://uk.php.net/manual/en/function.nl2br.php">http://uk.php.net/manual/en/function.nl2br.php</a><!-- m -->)if you don't do what torrent suggests than this
str_replace("\r\n", "<br />", $string);
will work better like this
str_replace("\r\n|\r|\n", "<br />", $string);
i found a neat little trick but i'm not sure what the name is for an "enter" (like if someone just pressed "Enter", instead of using preformatted text)
$content = str_replace("What goes here?", "<BR>", $content);str_replace("\r\n", "<br />", $string);PHP Function: nl2br() (<!-- m --><a class="postlink" href="http://uk.php.net/manual/en/function.nl2br.php">http://uk.php.net/manual/en/function.nl2br.php</a><!-- m -->)if you don't do what torrent suggests than this
str_replace("\r\n", "<br />", $string);
will work better like this
str_replace("\r\n|\r|\n", "<br />", $string);