function ReqValGet($strPrmNam, $strDflt = '') { # return the value for this parameter, or its default $strRslt = $strDflt; if (isset($_REQUEST[$strPrmNam])) { $strRslt = $_REQUEST[$strPrmNam]; }; return $strRslt; }; $ItmNam = ReqValGet("ItmNam"); // collect parameter // ensure we're called with an expected parameter $Match0 = ($ItmNam == 'Template' ); $Match1 = ($ItmNam == 'DiskSize' ); $Match2 = ($ItmNam == 'PathNames'); $Match3 = ($ItmNam == 'AGExport' ); $Match4 = ($ItmNam == 'TabCount' ); $Match5 = ($ItmNam == 'ASExpImp' ); if (($Match0 or $Match1 or $Match2 or $Match3 or $Match4 or $Match5) != True) { // it's not an expected parameter echo ''; // return to parent page return; // display nothing }; ?>