PHP - include a php file and also send query parameters

后端 未结 13 1198
长发绾君心
长发绾君心 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:33

    In the file you include, wrap the html in a function.

    
        

    In the file where you want it to be included, include the file and then call the function with the parameters you want.

提交回复
热议问题