PHP and Javascript interaction
<p>I need some things clarified here:</p>

<p>I have a website that updates the values of two variables each time the site is reloaded in the browser. This page is obviously an HTML page but the variables are updated by javascript functions. This page runs on my server. </p>

<p>Can PHP retrieve the values of these variables and, using them, write them to a txt file or XML file? I realise javascript is a browser side language and PHP a server side language but I don't know how the two can relate properly in this context. </p>

<p>Also I don't have the option of recreating the javascript code as PHP script.</p>

<p>Is what I want to do possible?</p>

<p>Thanks</p>
