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?
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?
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';
To redirect to another page in php (this does not require ajax):