You are trying to redirect in a PHP file that is called via AJAX. That won't work. You should return redirect info to your AJAX call, so you can redirect using Javascript in your 200 success function.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
It's what's on your line 16 in your Javascript code above.
You need to somehow detect there that you have to redirect, and act accordingly. I think your best bet is to let your PHP file return a JSON result (instead of just HTML).
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875