HTML form not working with CloudFlare

I have a simple HTML one-page website with one contact form that is being hosted through InMotion. As soon as I switched the DNS records to point to Cloudflare, my contact form no longer works. The contact form gets processed through a simple PHP script that is also hosted with InMotion.
How can I get my contact form to work under Cloudflare? I wouldn’t think this would be a difficult problem since I’m sure I’m not the only one who has a website with Cloudflare that uses HTML forms.
I don’t know if this is a DNS issue or an issue with Cloudflare. Any advice would be helpful.
Thanks

Hey there,

Can you share the link to your contact form with us? Or do you have a screenshot of what error the contact form is showing?

Thanks!

Thanks for you reply, I had already figured out the problem. Incorrect DNS