How do I save the original $_SERVER['HTTP_REFERER']; on a page that refreshes several times?

前端 未结 4 681
一个人的身影
一个人的身影 2021-01-21 22:58

I have a page where I need to get the referring URL so I can redirect them back after they compete a form. My problem is, the form has several drop menus and each time a selecti

4条回答
  •  故里飘歌
    2021-01-21 23:38

    When they go to the page save the referrer in a session variable.

    After it refreshes and does the page logic, redirect to the session variable you saved.

提交回复
热议问题