Re: urlencode and decode are producing \\\' instead of \'
| From: | andy | Date: | Fri, 29 Mar 2002 12:56:45 +0000 |
| Subject: | Re: urlencode and decode are producing \\\' instead of \' | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90664@lists.php.net to get a copy of this message | ||
does not work. Just like the decode function is out of order!
It is not even decoding \'
Andy
"Andrey Hristov" <ahristov@icygen.com> schrieb im Newsbeitrag
news:00e301c1d71e$b00569a0$0b01a8c0@ANDreY...
> try to do double rawurldecode().
>
> Andrey
>
> ----- Original Message -----
> From: "andy" <news.letters@gmx.de>
> To: <php-general@lists.php.net>
> Sent: Friday, March 29, 2002 2:36 PM
> Subject: Re: [PHP] urlencode and decode are producing \\\' instead of \'
>
>
> > does not help, any other ideas?
> >
> >
> > "Bogdan Stancescu" <mgv@fx.ro> schrieb im Newsbeitrag
> > news:3CA454D0.4080301@fx.ro...
> > > You don't have to rawurlDEcode again - that's done automatically. You
> > > have to encode so you're HTTP compliant, but the decoding is done by
PHP
> > > (or even Apache? I'm not sure) when receiving urlencoded strings via
URL
> > > and form data.
> > >
> > > Bogdan
> > >
> > > andy wrote:
> > >
> > > >Hi there,
> > > >
> > > >I am trying to fill a form again when an error occures, therefore I
> > redirect
> > > >to the form and pass the values via url like this:
> > > >
> > >
> >
>HEADER("Location:/profiles/6".$recipient_id."2.html?subject=".rawurlencode(
> > $
> > > >subject)."&message=".rawurlencode($message)."");
> > > >
> > > >then I put it in again like this
> > > > <textarea name="message" rows="10"
> > > > style="width:485px;" cols="58"
> > > >wrap="virtual">'.rawurldecode($message).'</textarea>
> > > >
> > > >The problem is, that this is causing a message like this:
> > > >test \\\'
> > > >
> > > >So what's wrong? Can anybody help on this?
> > > >
> > > >Thank you,
> > > >
> > > >Andy
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>