[solved] <?php include("page.php?var=x");?> gives error
Posted: 30. May 2010 05:44
Using the include fuction while trying to pass a variable at the same time like this:
Gives me this error code:
Google isn't really helping me out. Everything works separately, and even together, except for the include statement. If i remove the ?text... at the end then it works, however, I dont get to pass the variables. How do I make this work?
- Code: Select all
<?php include("button.php?text=home&url=index");?>
Gives me this error code:
Warning: include(button.php?text=home&url=index) [function.include]: failed to open stream: No error in X:\Dir\WebSite\index.php on line 73
Warning: include() [function.include]: Failed opening 'button.php?text=home&url=index' for inclusion (include_path='.;X:\Dir\_xampp\php\PEAR') in X:\Dir\WebSite\index.php on line 73
Google isn't really helping me out. Everything works separately, and even together, except for the include statement. If i remove the ?text... at the end then it works, however, I dont get to pass the variables. How do I make this work?