Re: stripped \n

From: Date: Wed, 20 Feb 2013 18:20:52 +0000
Subject: Re: stripped \n
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-320264@lists.php.net to get a copy of this message
On 2/20/2013 1:16 PM, John Taylor-Johnston wrote:
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? Let me understand this logic.
You have a form that gathers some text from a field and then you submit that form to a script that wants to put it back out in a hidden field on a new form? Is that it in a nutshell?

« previous php.general (#320264) next »