I’m busy debugging someone else’s code and I’ve come across something I think is odd.
I have two PHP pages, each of which imports a script containing a bunch of general functions. One of these functions is called getFormTableOptions.
Each of the two pages draws a slightly different form. Some of the fields are exactly the same. On both pages there’s a select box with the onchange event:
$('#form_table_name').php('getFormTableOptions', this.value, 'false', this.form.data_source.value)
My question is: what are the possible reasons why the onchange event would trigger fine in one page and on the other tell me that:
PHP function "makeFormReportGroup" does not exist in the specified file!
If this is a basic question please have patience, I’m very new to jQuery and I’m really struggling to find references to this syntax.
The
jQuery.phpplugin file is included on one page, but not the other.