...

View Full Version : Include with passed variables?



Erindesign
08-24-2007, 11:17 PM
Hey all,
is it possible to include a page with passed variables and have that page read the content?



include("page.php?i=1&u=2");


will page.php be able to get the i and u values?

Pennimus
08-25-2007, 12:01 AM
I don't know, my hunch says no, but you could probably have tested this in the time it took you to write it out :thumbsup:

CFMaBiSmAd
08-25-2007, 12:03 AM
If you read the include() section in the php manual, you will find that you cannot pass parameters on the end of the url when you include the files locally through the file system.

Inigoesdr
08-25-2007, 12:32 AM
You don't really need to either, since the included page will have access to all of your variables.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum