user475685
user475685

Reputation: 8319

Ajax request to php page

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

Answers (1)

hsz
hsz

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

Related Questions