You are here: Re: Including a page w/ GET arguments « PHP Programming Language « IT news, forums, messages
Re: Including a page w/ GET arguments

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация