PHP debugging

Status
You're currently viewing only Schluppy's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

Schluppy

Ars Tribunus Militum
2,486
You need to exit after redirecting to prevent any subsequent code from executing. ie:

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);
 
Status
You're currently viewing only Schluppy's posts. Click here to go back to viewing the entire thread.
Not open for further replies.