I updated the code and still the same error.
When testing the page directly it works.
When I include this php page in my wordpress template, and when I submit, it shows error 404 page can't be found. the new record hasn't been added into the db.
Any other ideas please on how to fix this issue?
looking forward to your reply.
I can provide you with an ftp so you can see the files on the server.