Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    passing value while including file

    Hi,
    I there is any possibility to pass argument while including a file.

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    ...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/
    Last edited by NancyJ; 07-13-2007 at 10:55 AM.

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi NancyJ
    Thanks for ur reply. Now I am clear in that.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •