I found the offending 0 with
it was in the page /webassist/mysql/rsobj at line 1
So the insert page is working with data being inserted in the database.
However I still cannot get is to send me the information by email.
Have you any more ideas where I may be wrong please?
I attach the latest files.