title: get element value of current page in php
body: <pre><code>&lt;input type="hidden" id="id" name="id" value="100"&gt;    
  &lt;? $id = '100'; ?&gt;
  &lt;? $getid = echo '&lt;script&gt;document.getElementById("id");&lt;/script&gt;'; ?&gt;
  &lt;? if( $id == $getid ): ?&gt;
  &lt;? echo 'id equal getid'; ?&gt;
  &lt;? endif; ?&gt;
  </code></pre>
  
  <p>I want to get a value using getElementById of current page in php but am unable to using the following code</p>
  
  <pre><code>&lt;? $getid = echo '&lt;script&gt;document.getElementById("id");&lt;/script&gt;'; ?&gt; code can't page load.
  </code></pre>
  
  <p>How can fix my code to get the value?</p>