Back to previous page with header( “Location: ” ); in PHP

前端 未结 6 2083
余生分开走
余生分开走 2020-11-28 02:46

The title of this question kind of explains my question. How do I redirect the PHP page visitor back to their previous page with the header( \"Location: URL of previou

6条回答
  •  忘掉有多难
    2020-11-28 03:11

    Its so simple just use this

    header("location:javascript://history.go(-1)");
    

    Its working fine for me

提交回复
热议问题