keeps on getting an error (jQuery variable to PHP variable)
<p>i still can't get the jquery variable.it keeps on giving me an error</p>

<pre><code>$(document).ready(function()
{
     $("#months").change(function(event)
    {
          $.ajax
          ({
            type: 'post',
             url: "monthly_CRD.php",
             data:
            {
                 "m": $(this).val()
             },
             success: function(msg)
             {
                 alert(msg);
             },
             error: function(msg) 
            {
                 alert("An error happened: " +msg);
            }   
       });
    });

    &lt;div&gt;
&lt;select id="months"&gt;
    &lt;option value='00'&gt;Month...&lt;/option&gt;
            &lt;option value='01'&gt;Jan&lt;/option&gt;
            &lt;option value='02'&gt;Feb&lt;/option&gt;
            &lt;option value='03'&gt;Mar&lt;/option&gt;
            &lt;option value='04'&gt;Apr&lt;/option&gt;
   &lt;/select&gt;
   &lt;/div&gt;

   &lt;?php
     if (isset($_POST['m'])) 
      {
         $m = $_POST['m'];
         echo $m;
      }
   ?&gt;
</code></pre>

<p>the error is An error happened: [objectXMLHttpRequest]</p>

<p>this is the jQuery</p>

<pre><code>  $(document).ready(function()
{
    $("select").change(function(event)
    {
        var view=$(this).val();
        switch(view)
        {
            case "daily":
            {
                $("#graph").load('../crd_reports/daily_CRD.php');
                $("#top10").empty();
                break;
            }
            case "weekly": 
            {
                $("#graph").load('../crd_reports/weekly_CRD.php');
                $("#top10").load('../crd_reports/top10_weekly.php');
                break;
            }
            case "monthly":
            {
                $("#graph").load('../crd_reports/monthly_CRD.php');
                $("#top10").load('../crd_reports/top10_monthly.php');
                break;
            }
            case "yearly":
            {
                $("#graph").load('../crd_reports/yearly_CRD.php');
                $("#top10").load('../crd_reports/top10_yearly.php');
                break;
            }
            default: 
            {
            }
        }

    }); 
});
</code></pre>
