Hi again Harsh,
You will need to post some code.
but heres some provisional information....
PHP files are held on the server, they respond to requests from browsers usually with html markup. Javascript is on the client machine and then cannot interact directly with PHP.
you CAN get variables to javascript which can be used later on, on the client machine, but not the other way (well at least not without posting). please be careful not to fall in the trap of thinking variables can be passed two ways between javascript and PHP.
I repeat my first statement again, please post as much code as you can so we can get a better idea of what you are trying to do.
Finally, my name is Harjit, and in school people shortened that to Harj, and the one of my friends with a speach impediment couldn't say the "J" sound, as used to call me harsh, and it stuck, and i used it as a tag name when i used to DJ.