I want to call java script in my PHP file but it in not working. I am in confusion because when i combine whole code in one single php file it works fine but again when i split the codes in two pages like test.php and upload.js and when i am calling the .js file in .php it don't works.I have done various search but i am not getting what i needed. Can someone figure it where i am missing what.
here is the sample code of test.php
here is the js function