i can get it to echo out something for example
// function
stage_1 () {
oop form code
if (!($myForm->getSubmittedData() && $myForm->isDataValid())) {
$form_command = "stage1";
$form_errormessage = "Validation error!";
$myForm->display();
} else {
$form_command = "stage2";
ECHO "Still STAGE 1 NOW!";
return $form_command;
}
}
i had no problem of actually echoing "stage2", but for some reason it can't access the $form_command variable.
I think the logic causes it to stop being run because of the if / else statement in the function?
It then stops and does not go to stage2