Let's say the user is authorized with correct username password, and the location value is saved in
$location
You can use the following code to redirect user after authorized:
PHP Code:
<?php header("Location: " . $location); ?>
Note: cannot have any output before header()