Reputation: 8319
I need to redirect to a page using php.
i am passing an ajax request to a php page, and based on the request sent i need the php to redirect to another page. is it possible?
Upvotes: -1
Views: 734
Reputation: 152206
On success event of ajax request you have to get requested param from response (an url or params, etc) and call in JavaScript:
window.location = 'http://google.pl';
Upvotes: 2