I have three files: container.php, content.php, and action.php. All three files use a "require" statement to bring in some global data.
- container.php loads -> all good
- container.php requests data via Ajax from content.php ->all good
- container.php sends form data to action.php via Ajax -> BUT action.php fails as it does not have global values from the required file, specifically a database connection.
Both container.php and content.php need and correctly use the same required file. Container.php is correctly sending the form data to action.php...I can just echo it right back.
Why does action.php not correctly load the data from the required file? What am I missing?
- Scott
- Scott
- container.php loads -> all good
- container.php requests data via Ajax from content.php ->all good
- container.php sends form data to action.php via Ajax -> BUT action.php fails as it does not have global values from the required file, specifically a database connection.
Both container.php and content.php need and correctly use the same required file. Container.php is correctly sending the form data to action.php...I can just echo it right back.
Why does action.php not correctly load the data from the required file? What am I missing?
- Scott
- Scott