Re: Extrange behavior with Header('Location')
| From: | Jordi Canals | Date: | Tue, 21 Sep 2004 16:53:16 +0000 |
| Subject: | Re: Extrange behavior with Header('Location') | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197435@lists.php.net to get a copy of this message | ||
On Mon, 20 Sep 2004 20:23:53 -0700 (PDT), Chris Shiflett
<shiflett@php.net> 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 and only use htmlentities() when I plan to display it
> within HTML, leaving it unaltered otherwise.
>
Many thanks to all.
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.
Thanks again,
Jordi Canals