PHP - include a php file and also send query parameters

后端 未结 13 1219
长发绾君心
长发绾君心 2020-11-27 03:46

I have to show a page from my php script based on certain conditions. I have an if condition and am doing an \"include\" if the condition is satisfied.

if(co         


        
13条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 04:35

    If you are going to write this include manually in the PHP file - the answer of Daff is perfect.

    Anyway, if you need to do what was the initial question, here is a small simple function to achieve that:

    ?>

    I'm using this variable variable construction very often.

提交回复
热议问题