Tuesday, July 6, 2010
How to send parameter into include in PHP
This will not work.include('communities.php?show=gated&where=naples');
?>
However this will$_GET = array();
$_GET['show'] = 'gated';
$_GET['where'] = 'naples';
include('communities.php');
?>
Putting this on your page and nothing else will give the same result as
going to 'communities.php?show=gated&where=naples' but the URL can be
whatever you want it to be.
0 comments: to “ How to send parameter into include in PHP ”
Post a Comment