Assigning php variable to javascript variable
<p>I want to assign a php variable to javascript variable.</p>

<pre><code>&lt;?php 
  $type =1;  
  $form = ' &lt;script&gt;                
             var jquery_type " &lt;?php = $type;  ?&gt;";
           &lt;/script&gt;';            
?&gt;
</code></pre>

<p>But in source page, it is showing like below, </p>

<p><code>var jquery_type  " &lt;?php = $type;  ?&gt;" ;</code></p>

<p>How can i get this php value ?</p>