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?
在ajax请求的成功事件中,您必须从响应(url或params等)获取请求的参数并在JavaScript中调用:
window.location = 'http://google.pl';
To redirect to another page in php (this does not require ajax):
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.