Another way is to use php form builder for creating and managing forms on your website
you can try to use form builder software to customize your form as you need
I do not know what about own php forms. But I past the genereted code of form from php form builder to any web page and everything is ok.
You have done a great job. Have you solved it yourself? I’m usually using php form tutorials in such cases.