Re: inserting linebrakes in multisite forms

From: Date: Sun, 07 Jul 2002 15:24:35 +0000
Subject: Re: inserting linebrakes in multisite forms
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-105959@lists.php.net to get a copy of this message
Hi alberto, I did try this out, but somehow this happens: text br / br / text in new line br/ is exacly where the linebrakes should be, but instead it is typed on screen. Is there a solution for this? Andy "Alberto Serra" <albertoserra@gala.net> schrieb im Newsbeitrag news:3D28226C.6010307@gala.net... > ðÒÉ×ÅÔ! > > 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....... >

« previous php.general (#105959) next »