Re: header("Location with & in URL
| From: | Tom Beidler | Date: | Fri, 21 Jun 2002 23:43:42 +0000 |
| Subject: | Re: header("Location with & in URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103355@lists.php.net to get a copy of this message | ||
Nope, doesn't work.
Maybe it's something with the server/PHP setup?
> From: Richard Baskett <php@baskettcase.com>
> Date: Fri, 21 Jun 2002 16:35:11 -0700
> To: Tom Beidler <tom@orbittechservices.com>, PHP General
> <php-general@lists.php.net>
> Subject: Re: [PHP] header("Location with & in URL
>
> I do this all the time and I just use this syntax:
>
> header("Location:
>
> http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client");
> exit;
>
> And it works for me...
>
> Rick
>
> "The greater danger for most of us is not that our aim is too high and we
> miss it, but that it is too low and we reach it." - Michelangelo
>
>> From: Tom Beidler <tom@orbittechservices.com>
>> Date: Fri, 21 Jun 2002 16:22:20 -0700
>> To: php list <php-general@lists.php.net>
>> Subject: [PHP] header("Location with & in URL
>>
>> I'm trying to use header("Location to redirect to a URL that has variables
>> in it, ie.
>>
>>
>> http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client
>>
>> When it redirects I get the url minus everything after the first ampersand.
>> I tried using htmlentities with no joy like so...
>>
>> $retUrl = htmlspecialchars ($retUrl);
>>
>> if ($retUrl != "") {
>> header("Location: " . $retUrl);
>>
>> Any ideas?
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>