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. Quote Link to comment Share on other sites More sharing options...
we4freelance Posted April 8, 2008 Share Posted April 8, 2008 Yes, it is possible. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.