The test right now has a name field, which is posted to the page, then passed through the dispatch using the $_POST as an array argument for the field. The following code echo's nothing.
Code: Select all
function Dispatcher($event, $data) {
// GRAB AN EVENT AND PROCESS THE DATA
switch ($event) {
case "testhandler":
// USER ENTERED FIRST AND LAST NAME
echo $data['name'];
}
}Code: Select all
Dispatcher("testhandler", $_POST);