Hi,
Anyway where we can pass variables in the inclue()?
like,
include("index.php?show=thatPage");
Hi,
Anyway where we can pass variables in the inclue()?
like,
include("index.php?show=thatPage");
Why would you ever want to do that? That’s really dangerous…
$_GET['show'] = 'thatPage';
include('index.php');
You really should read the manual.
http://www.php.net/include/
Thanks!
Not like you have it there, but if you’re using a protocol wrapper, like HTTP, you can.
include 'http://domain.com/?one=1&two=2';
Other than that, why would you need to ?