[eluser]AgentPhoenix[/eluser]
I'm working on a login script for my application and I want users to fill the form out and submit it. The form then kicks them over to a new page that checks the user details to see if they're allowed in. If they are, it kicks them over to a success page, displays a message, then 5 seconds later, spits them out at the control panel. Simple enough. Going from the login page to the check_login page is easy because it's a form tag, but I'm running in to an issue with the redirect function.
Since there's nothing in the function for handling delay before a redirect, I tried to use PHP's sleep function to delay the redirect, but instead of going from
check_login to
success and waiting, it's waiting on
check_login for 5 seconds then blowing through
success straight into the control panel. This happens whether I use location or refresh. Any ideas how I hold it up on
success for a few seconds before going over to the control panel?