开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜