title: Passing javascript variables to php?
body: <p>ok so im trying to get a javascript variable into a php script, this would be an example,</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  x = new Date()
  &lt;/script&gt;
  &lt;?php
  $x = $_GET["x"]; 
  ?&gt;
  &lt;p&gt;&lt;?php echo $x ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>i just cant get it to work! I need help please?</p>
  
  <p>EDIT: well im just trying to get the hash from a url via javascript then put that in a php script.</p>