[FX.php List] http_redirect question

Derrick Fogle derrick at fogles.net
Tue May 15 10:55:59 MDT 2007


Doing a Redirect and doing an Include are two VERY different things.  
An Include won't send anyone to any other page, it just inserts the  
included file into the file that calls it. A Redirect actually sends  
the browser to a different page.

On May 15, 2007, at 11:50 AM, Bob Patin wrote:

> That might be the key; so if I've set the variable "$brand", then  
> could I go to a page like this:
>
> include_once('page.php');
>
> and then $brand would be set to its value on "page.php"?
>
> That's so easy...
>
>
> On May 15, 2007, at 11:42 AM, David Ness wrote:
>
>> Of course, if the code block is being included with an  
>> 'include_once' or
>> 'include', you don't (can't) pass it parameters. But any php variable
>> set in the parent document will automatically be available in the  
>> child
>> (included) document.
>>
>>
>> --
>> David Ness,
>> Database Systems Programmer
>>
>> Bonded Builders Warranty Group
>> 1500 Kings Highway
>> Port Charlotte, FL 33980
>> 800.749.0381 x3123 (National Toll Free)
>> 941.255.3274 x3123 (Local)
>>
>>
>> -----Original Message-----
>> From: fx.php_list-bounces at mail.iviking.org
>> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
>> Sent: Tuesday, May 15, 2007 12:29 PM
>> To: FX.php Discussion List
>> Subject: [FX.php List] http_redirect question
>>
>> Hi all,
>>
>> Is this a function of PHP 5? I can't seem to get it to work in PHP
>> 4.4.4.
>>
>> I'm trying to put a PHP command in to send someone to  "page.php?
>> r=123"; include_once won't pass parameters (at least, I can't get  
>> it to
>> work).
>>
>> Any suggestions? I don't want to switch to PHP 5 this morning,  
>> just want
>> to get this working... :)
>>
>> Thanks,
>>
>> Bob Patin
>> Longterm Solutions
>> bob at longtermsolutions.com
>> 615-333-6858
>> http://www.longtermsolutions.com
>>
>>    CONTACT US VIA INSTANT MESSAGING:
>>       AIM or iChat: longterm1954
>>       Yahoo: longterm_solutions
>>       MSN: tech at longtermsolutions.com
>>       ICQ: 159333060
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list


Derrick Fogle
derrick at fogles.net





More information about the FX.php_List mailing list