How can i redirect back to previous url in php?
If you want to redirect back to previous URL after some action, use the following code.
$_SERVER['HTTP_REFERER']
S_SERVER is a global variable of php.
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in