Reply to Re: Including a page w/ GET arguments

Your name:

Reply:


Posted by Jerry Stuckle on 03/14/06 06:23

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
>

The file name is not 'mypage.php?name=joe', is it? That is, do you see
that in your directory listing?

When you use GET parameters, the web server strips them out before
fetching the file. include() does not such thing.

Include just copies the included file into the location in your existing
file, just as if you had cut and pasted it. So, if you have:

$name='joe';
include('mypage.php');

Within mypage. php you can just reference $name and get 'joe'.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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