Javascript Contact Form

So I got this form with javascript validation but how can I properly kickback a message from the php to the javascript to display either the success or error message without turning the whole page into a php one?

Test Link:

polarpos [dot] com/contactform950/contactus.html

HTML Source:

https://hastebin.com/nolonanoqa.html

PHP Source:

https://hastebin.com/joviqahixo.php

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.