$ssrub = $_GET['ssrub']; $rub = $_GET['rub']; if ($ssrub == ""){ $ruba = $rub.".php"; } else{ $ruba = $ssrub.".html"; } ?>