I have the following form in a website: http://jsbin.com/hihodaxa/3/, it works when the file is html but when I make it php so i can use include (templates), it doesn't work. The rest of the JS code executes fine. The content is not in English.
My question is how should I redesign the js code so that the js executes properly in a php file? The js code in the link is from an external file <link href="mainCode.js" type="text/javascript"> placed in the php file. As far as I read in the Internet, this should work.
Any help is much appreciated. Best, Ivan