Exchanging variables between JavaScript and PHP. can we assign a java script variable to php variable <?php $filenum=?>files[filenum];. Assign Javascript Variable Value to PHP Variable. I need to store small data so i want to use php to write data to text file..how insert the code within javascript.html code?My code need to be saved as .. Passing PHP Variables to JavaScript. 539.365.721.5.. can we assign a java script variable to php variable. PHP Variables how to insert php code within javascript/html code. How to pass JavaScript variables to PHP.Here us a line form my .js file - itemsOpen : [], I was hoping to pass a variable into the [] - so that I could pass variables somehow - any clues on how that is done?. . How to get current server time using JavaScript - Pass javascript value to php variable PHP question please help !!. I understand JavaScript is a Client-Side Scripting language. But is it possible to get the serve