...

View Full Version : passing value while including file



kalaid
07-13-2007, 10:38 AM
Hi,
I there is any possibility to pass argument while including a file.

NancyJ
07-13-2007, 10:52 AM
...yes

the easiest way to find out these things is to try them.

You can pass parameters to an include exactly the same way as you would if you were requesting it directly. If it is a local include it will have access to all the variables from the script requesting it.

http://www.php.net/include/

kalaid
07-13-2007, 10:59 AM
Hi NancyJ
Thanks for ur reply. Now I am clear in that.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum