0) {
//set the variables from the http values
$call_flow_extension = check_str($_POST["call_flow_extension"]);
$call_flow_feature_code = check_str($_POST["call_flow_feature_code"]);
$call_flow_status = check_str($_POST["call_flow_status"]);
$call_flow_pin_number = check_str($_POST["call_flow_pin_number"]);
$call_flow_destination = check_str($_POST["call_flow_destination"]);
$call_flow_alternate_destination = check_str($_POST["call_flow_alternate_destination"]);
$call_flow_description = check_str($_POST["call_flow_description"]);
//seperate the action and the param
$destination_array = explode(":", $call_flow_destination);
$call_flow_app = array_shift($destination_array);
$call_flow_data = join(':', $destination_array);
//seperate the action and the param call_flow_anti_app
$alternate_destination_array = explode(":", $call_flow_alternate_destination);
$call_flow_anti_app = array_shift($alternate_destination_array);
$call_flow_anti_data = join(':', $alternate_destination_array);
}
if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$msg = '';
if ($action == "update") {
$call_flow_uuid = check_str($_POST["call_flow_uuid"]);
}
//check for all required data
//if (strlen($call_flow_extension) == 0) { $msg .= "Please provide: Extension
\n"; }
//if (strlen($call_flow_feature_code) == 0) { $msg .= "Please provide: Feature Code
\n"; }
//if (strlen($call_flow_status) == 0) { $msg .= "Please provide: Status
\n"; }
//if (strlen($call_flow_app) == 0) { $msg .= "Please provide: Application
\n"; }
//if (strlen($call_flow_pin_number) == 0) { $msg .= "Please provide: PIN Number
\n"; }
//if (strlen($call_flow_data) == 0) { $msg .= "Please provide: Application Data
\n"; }
//if (strlen($call_flow_anti_app) == 0) { $msg .= "Please provide: Alternate Application
\n"; }
//if (strlen($call_flow_anti_data) == 0) { $msg .= "Please provide: Application Data
\n"; }
//if (strlen($call_flow_description) == 0) { $msg .= "Please provide: Description
\n"; }
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "includes/header.php";
require_once "includes/persistformvar.php";
echo "
| \n";
echo $msg." "; echo " |
| \n";
echo " "; echo " | ";
echo "