Make php post the error/success message on the same page as the form - no need to direct to a different page

So, show us your complete new code so we can try to help.

Well, you can do that however you lay out the code and however many physical files it’s in on the server. Get it working first though.