0) {
$destination_name = check_str($_POST["destination_name"]);
$destination_context = check_str($_POST["destination_context"]);
$destination_extension = check_str($_POST["destination_extension"]);
$destination_enabled = check_str($_POST["destination_enabled"]);
$destination_description = check_str($_POST["destination_description"]);
}
if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$msg = '';
if ($action == "update") {
$destination_uuid = check_str($_POST["destination_uuid"]);
}
//check for all required data
//if (strlen($destination_name) == 0) { $msg .= "Please provide: Name
\n"; }
//if (strlen($destination_context) == 0) { $msg .= "Please provide: Context
\n"; }
//if (strlen($destination_extension) == 0) { $msg .= "Please provide: Extension
\n"; }
//if (strlen($destination_enabled) == 0) { $msg .= "Please provide: Enabled
\n"; }
//if (strlen($destination_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 "