Posted by Chuck Anderson on 11/18/80 11:42
IWP506@gmail.com wrote:
>Hi
>
>I have a page that returns data based on the arguments provided to it
>in the URL. I want to show these results embedded in another page.
>Include('mypage.php?name=joe') fails with "failed to open stream:
>Invalid argument". How can I do this?
>
>Thanks
>
>IWP506
>
>
>
As has been said, you simply do not need add the variable. It is already
in the local environment and the include file can access it directly.
Read the first note (and example) here about variable scope:
http://www.php.net/manual/en/language.variables.scope.php
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Navigation:
[Reply to this message]
|