Pass PHP to Javascript
<p>I have a PHP variable I want to add in Javascript, the problem is it's not getting the variable, please help I'm new to javascript.  Sorry I think I did not explain very good.</p>

<p>At the moment I have three select boxes displaying Year, month, date the value of $row_info['birth'] is 2011-04-01. When I apply date to defaultDate: the value is not in there. </p>

<pre><code>&lt;?php
    $date = $row_info['birth'];
    echo("&lt;script type='text/javascript'&gt;\n");
    echo("date = '{$row_info['birth']}';\n");
    echo("&lt;/script&gt;");
?&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function(){
    $("#picker3").birthdaypicker({
        dateFormat: "bigEndian",
        monthFormat: "short",
        placeholder: false,
        defaultDate: date,
        hiddenDate: true
      });
  });
&lt;/script&gt;
</code></pre>

<p>I would really appreciate some help, thanks</p>
