Is there a way to add a get variable to the php include
I am trying to do this ...is it possible
<?php include("includes/sidebar.php?show开发者_如何学Go_hide_tab=true"); ?>
because some pages dont need some logic in the sidebar
Just do this
<?php
$show_hide_tab = true;
include('includes/sidebar.php');
?>
The scope of the $show_hide_tab
variable will fall through to the include script.
精彩评论