r-it Posted April 8, 2008 Share Posted April 8, 2008 hi there, i'd like to know if it is possible to redirect with php on an AJAX page. basically, a user is going to input their login details, and based on who they are, they should either remain on the current directory, or be redirected to a specified subdirectory, is that possible? once the php page being called by the AJAX script verifies the inputted data, it redirects or issues a response. Link to comment https://forums.phpfreaks.com/topic/100124-redirecting-with-ajax-and-php/ Share on other sites More sharing options...
we4freelance Posted April 8, 2008 Share Posted April 8, 2008 Yes, it is possible. Link to comment https://forums.phpfreaks.com/topic/100124-redirecting-with-ajax-and-php/#findComment-512134 Share on other sites More sharing options...
haku Posted April 9, 2008 Share Posted April 9, 2008 Have your ajax script check the response from the php script. If the response is such that the person needs to be redirected, then use winow.location to set the new page. Link to comment https://forums.phpfreaks.com/topic/100124-redirecting-with-ajax-and-php/#findComment-512840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.