You need to exit after redirecting to prevent any subsequent code from executing. ie:
Also, the additional single quote you're concatenating is unnecessary and may be the source of the error.
And, turn on error reporting when debugging.
Code:
header('Location: http://kracov.org/home.html?redirect=' . $url . '');
exit;
Also, the additional single quote you're concatenating is unnecessary and may be the source of the error.
Code:
header('Location: http://kracov.org/home.html?redirect=' . $url);
exit;
And, turn on error reporting when debugging.
Code:
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);