Insert variable into Header Location PHP

后端 未结 7 974
北海茫月
北海茫月 2021-02-07 07:39

The question is: How do i insert the variable (echo $url_endpoint;) as a part of the link in the last line: header(\'Location: http://linkhere.com/HERE_I_WANT_THE_VARIABLE\');

7条回答
  •  不知归路
    2021-02-07 08:17

    You can add it like this

    header('Location: http://linkhere.com/'.$url_endpoint);
    

提交回复
热议问题