I have HTML5 Template with 5 pages. I am converting it to a WordPress Theme.
I have a contact page. This page includes 'forms.js' script to send contact form data to 'MailHandler.php' file.
Inside the 'forms.js' script there is a variable I want to change,
How do I change this to something like the following?
mailHandlerURL:<?php echo get_template_directory_uri(); ?>'/bat/MailHandler.php'
The PHP is not working inside this script. Please help.