Select list not refreshing after add data on DB

I read somewhere that I can have only one header(“locagion. foo.php”) per page, my problem is:
I have a form on a left div, with a html that loads with the data from database, I also have another form on a right div that also load the same data, on left I select authors to add a new task, and on right is where I add new authors or delete authors by selecting them from a list, I am doing this because I need to do something similar on the job I just started, but when I add the new author, it loads exactly at the same time on the right div, but to load it on left div the page must be reloaded, and here is the problem, once I create the instruction header(“location: foo.php”) it returns that well known error of “Cannot modify header information – headers already sent by…”Left div – Task author is not loaded when I add a new one, only after refresh – right div delete author is loaded as soon as I include a new one

code at https://github.com/vsrromero/todolist