SyntaxFix
Write A Post
Hire A Developer
Questions
Just a little addition: I believe it's a common and known thing to add exit; after the header function in case we don't want the rest of the code to load or execute...
exit;
header('Location: ' . $_SERVER['HTTP_REFERER']); exit;