Re: [PHP] location= Construct Doc
From: Lee Stewart (lstewart_at_dsgroup.com)
Date: 11/10/03
- Next message: Rob Burris: "Re: [PHP] $_SESSION[''] variable not get passed"
- Previous message: Marek Kilimajer: "Re: [PHP] New module"
- In reply to: Chris W. Parker: "RE: [PHP] location= Construct Doc"
- Next in thread: Chris Shiflett: "Re: [PHP] location= Construct Doc"
- Reply: Chris Shiflett: "Re: [PHP] location= Construct Doc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: php-general@lists.php.net Date: Mon, 10 Nov 2003 13:42:02 -0700
It's not $location = xxx, just
location = "page.php";
And it seems to work as a redirect... But not part of the header
fuction, and not just setting a variable...
Lee
Chris W. Parker wrote:
> Lee Stewart <mailto:lstewart@dsgroup.com>
> on Monday, November 10, 2003 12:18 PM said:
>
>
>>I see the Location: of the Header function there, but what I see in
>>the code is just a location = and a page name... No header
>>function...
>>
>>Is it the same thing?
>
>
> $location = "page.php"; is nothing more than a value being assigned to a
> variable. that variable needs to be used somewhere (or else it'd just be
> a waste of resources). the most likely situation is what people have
> suggested so far. that is, the $location variable is being used in a
> redirect, i.e. header("Location: $location");
>
> but in answer to your question, no they are not the same thing.
>
>
> HTH,
> Chris.
> --
> Don't like reformatting your Outlook replies? Now there's relief!
> http://home.in.tum.de/~jain/software/outlook-quotefix/
- Next message: Rob Burris: "Re: [PHP] $_SESSION[''] variable not get passed"
- Previous message: Marek Kilimajer: "Re: [PHP] New module"
- In reply to: Chris W. Parker: "RE: [PHP] location= Construct Doc"
- Next in thread: Chris Shiflett: "Re: [PHP] location= Construct Doc"
- Reply: Chris Shiflett: "Re: [PHP] location= Construct Doc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|