la soluzione giusta è usare javascript e non php in questo caso, dovresti farti spostare o aprire un nuovo thread nell'apposita sezione