Re: [PHP] Extrange behavior with Header('Location')

2004-09-21 Thread Paul Waring
> Just, the result returned by the fuinction is mainly used to creatre > links in the pages, only in some very special cases will be used with > the header function. Just I use the & entity in links because I > want all my pages being validated by the W3C validator service. As well as that, you sh

Re: [PHP] Extrange behavior with Header('Location')

2004-09-21 Thread Jordi Canals
On Mon, 20 Sep 2004 20:23:53 -0700 (PDT), Chris Shiflett <[EMAIL PROTECTED]> wrote: > > > header('Location: '. html_entity_decode($url)); > > > > I would like to know if there is a better way to do it > > This should work fine. However, I would prefer to keep the data in its > original format an

Re: [PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Chris Shiflett
--- Jordi Canals <[EMAIL PROTECTED]> wrote: > I have seen an strange thing with the funcion > Header("Location: $url") and will tell in short words. > > I have a method in a class wich composes an URL from the > database, this method sets some extra params in the url. In > this case, the function

Re: [PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Marek Kilimajer
Jordi Canals wrote: I have a method in a class wich composes an URL from the database, this method sets some extra params in the url. In this case, the function returns: /myaccount/?opt=sys&id=3 Note the & in the URL Well, with this code, the url works perfect and the & is going as expected redirec