Processing Contact form in PHP

Hello all,
I need to export my Webflow site. I’m using php and embedded code for a contact form and it is mostly successful. I have my set to my external php file on the server and I receive the mail to my desired inbox when the form is completed successfully.

However, I’m struggling to keep the the user on the “Contact” page of the website as the form action is directing to the .php file so the user only sees a black page once the page is submitted.

Has anyone come up with a solution to this?

Thanks,
Michael

Here is a post on stackoverflow that explains how to do what you want.

php - Staying on page after submitting - Stack Overflow

Thank you so much! That’s amazing.