[Solved] window.location seems to cancel ajax post request


So, that’s not how HTTP, AJAX, or PHP work. There isn’t any POST data when you do your redirect, because the redirect is a separate request from the AJAX post. What you want is to do an AJAX post and somehow consume the response on your page, without doing a redirect at all.

2

solved window.location seems to cancel ajax post request