header("location: " . $_SERVER['HTTP_REFERER']);

prova così