use opensrs\OMA\SearchDomains; if ($_SERVER['REQUEST_METHOD'] === 'POST') { require_once dirname(__FILE__) . '/../../opensrs/openSRS_loader.php'; // Put the data to the Formatted array $callArray = array('criteria' => array('company' => $_POST['company'], 'match' => $_POST['match']), 'range' => array('first' => $_POST['first'], 'limit' => $_POST['limit']), 'sort' => array('by' => $_POST['by'], 'direction' => $_POST['direction'])); if (!empty($_POST['deleted'])) { $callArray['criteria']['deleted'] = true; } if (!empty($_POST['type'])) { $callArray['criteria']['type'] = explode(',', $_POST['type']); } if (!empty($_POST['token'])) { $callArray['token'] = $_POST['token']; } // Open SRS Call -> Result $response = SearchDomains::call(array_filter_recursive($callArray)); // Print out the results echo ' In: ' . json_encode($callArray) . '<br>'; echo 'Out: ' . $response; } else { // Format if (isset($_GET['format'])) { $tf = $_GET['format']; } else { $tf = 'json'; } include 'header.inc'; ?> <div class="container"> <h3>search_domains</h3> <form action="" method="post" class="form-horizontal" >