Add php database to java script file
<p>I am working on a project of web calendar. I want to add my php database file to the java script file. When I click on the save button of calendar, the entries showed in calendar, but I m unable to add PHP file to save button. So when I click on save button, the entry should go to the database(php file).</p>

<p>code goes here:-</p>

<pre><code>buttons: 
        {
           save : function() 
           {
              calEvent.id = id;
              id++;
              calEvent.start = new Date(startField.val());
              calEvent.end = new Date(endField.val());
              calEvent.title = titleField.val();
              calEvent.body = bodyField.val();

              $calendar.weekCalendar("removeUnsavedEvents");
              $calendar.weekCalendar("updateEvent", calEvent);
              $dialogContent.dialog("close");

           },
           cancel : function() {
              $dialogContent.dialog("close");
           }
        }
</code></pre>
