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: