passing parameters to php include/require construct

前端 未结 4 629
隐瞒了意图╮
隐瞒了意图╮ 2021-02-12 11:01

I\'ve read quite a few posts that are very similar to the question I\'m about to ask, but I just wanted to be sure that there wasn\'t a more sophisticated way to do this. Any f

4条回答
  •  旧时难觅i
    2021-02-12 11:15

    In the past, many people have disagreed with this approach. But I think it is a matter of opinion.

    You can't pass _GET or _POST param via a require() or include() , but you can you first set a _SESSION key/value and pull it on the other side.

提交回复
热议问题