stripped \n

From: Date: Wed, 20 Feb 2013 18:16:31 +0000
Subject: stripped \n
Groups: php.general 
Request: Send a blank email to php-general+get-320263@lists.php.net to get a copy of this message
Hi, I have a <textarea> when submitted creates a new form with the textarea data in a hidden field: <input name="DPRnarration" type="text" hidden form="DPRform" value="Enter call narration here."> But when this new form gets resubmitted, the \n get stripped? <input name="DPRnarration" type="text" hidden form="DPRform" value="Enter callnarration here."> I don't get it. There is nothing in my code that is stripping the \n? <input name="DPRnarration" type="text" hidden form="DPRform" value="<?php echo stripslashes($_POST["DPRnarration"]);?>"> Do I need to put it in another textarea and declare it hidden?

« previous php.general (#320263) next »