Thanks for your fast reply.
I removed the var_dump and now it looks better, everything works.
Except that it won’t populate with the database anymore. It needs the closed brackets aterkom[] to be able to send the info to the SQL server.
Unfortunately I don’t have enough skills to get this script working without the arrays.