title: how to pass a single variable to html from php page
body: <p>i just want to know how to send a variable from the php page to html page ?</p>
  
  <p>this is my user_check.php code :</p>
  
  <pre><code>&lt;? php
  $var="1021";
  ?&gt; 
  </code></pre>
  
  <p>and my user.html code is </p>
  
  <pre><code>&lt;div id="var" type="hidden"/&gt;
  </code></pre>
  
  <p>i just want to pass the variable $var to the div control and need to store the variable in value attribute of div . i searched all the google but no solutions available . can anyone help ? 
  Thank you</p>