Is it possible to redirect the page with PHP after an Ajax call?

后端 未结 4 769
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-29 03:57

I have a website where I want to provide an option for users, if they click on a table\'s rows, they get regirected to another page (based on the contect of the table row).

4条回答
  •  星月不相逢
    2021-01-29 04:12

    You cannot redirect with PHP, however you can easily redirect with the response of your ajax call.

    refer to: window.location.replace(...)

提交回复
热议问题