Re: inserting linebrakes in multisite forms
| From: | Alberto Serra | Date: | Sun, 07 Jul 2002 11:13:48 +0000 |
| Subject: | Re: inserting linebrakes in multisite forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105948@lists.php.net to get a copy of this message | ||
Привет!
andy wrote:
One Form has a textfield, I submit it to another html site where there is another form with a textfield. Inside this textfield I place a hidden field with the value of the field from page 1 then I submit to the actual php site inserting the values into a db.So, let's see if I got you right: Form 1: a textfield, you submit it to another page (no matter whether it is on the same host or not, this should not make any difference) Form 2 contains: 1) a hidden field with the value from form 1 2) another text field for new user input You submit form 2 and nl2br does not work on the values of the hidden field. Right? If that is so it's simply because once the value gets put in form2/field1 it has already lost the new lines. So you should run nl2br on it *before* it gets submitted the second time. Do it when you send the value to form2. пока Альберто Киев -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is.......