Thank you so much for your response. I spent all day trying to figure it out and am glad to report that I managed to get it working and it wasn’t my code exactly that was at fault. I had my .htaccess file configured to prevent spam and that was the problem… I’m just stupid.
So if anyone else is having a problem like this, double check your .htaccess file… Hopefully, my time spent today will help more than just me.
Thanks again.