How to pass value from php to javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/10437703/pass-php-variable-value-to-javascript">pass php variable value to javascript</a>  </p>
</blockquote>



<p>I want to create a progress bar, the value of the progress will be coming from PHP.</p>

<pre><code>&lt;div class="prog" id="progressbar"&gt;&lt;/div&gt;
&lt;label id="amount"&gt;
    &lt;?php echo $cast; ?&gt;
&lt;/label&gt;
</code></pre>

<p>I have this kind of javascript.</p>

<pre><code>&lt;script&gt;
$(function() {
    $( "#progressbar" ).progressbar({
    value: 0
    });
});
&lt;/script&gt;
</code></pre>

<p>How can I throw the value $cast in my script?</p>
