I have a php form that works fine when I open it directly. The submit button will add records to several tables as needed (using MySQL).
But when I load the page into a div on another page, clicking the submit button does not add the records.
One the main page I have:
function addAppt(apptDate)
{
$("#detailSection").load("newAppointment.php?apptDate=" + apptDate);
}
When the form loads in the div, it is properly putting the value apptDate into the Appointment field in the form. So it seems to be loading fine. It is just the code behind the submit button (which is in newAppointment.php) does not run.
The reason I am using jquery instead of a php include is because there are a couple different forms that I need to switch between depending on what the user clicks on the main page, and they are all going into the "detailSection" div.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Expert of the Year award recognizes an expert who helped improve Experts Exchange in the past year through high levels of contributions and participation on site. This award is given to the expert who has achieved the highest levels of participation, while maintaining quality contributions and professionalism.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.