I'm building a CMS in PHP and this is my first attempt to use ajax to do something cool. It's making my queryies problematic, however. I'm writing in this forum because my PHP forms worked fine before I did the following:
On my index page, I have a header with a menu in one DIV and a content area in another. What I wanted was selecting a menu item to load the appropriate .php form in the content DIV. I found this fun ajax script to serve that purpose. So my menu items look like this:
<a href="javascript:ajaxpage('lrs_addstudent.php', 'contentarea');">Add Student</a>
<a href="javascript:ajaxpage('es_selectstudent.php', 'contentarea');">Select Student</a>
etc.
Anyway, the .php pages load into the DIV, but when I submit the forms that are in them, it doesn't recognize any of the included scripts or database connection, nothing. I've been trying to conceptualize what's happening, but I can't wrap my head around it. Can anyone explain please?