template_dir = "template/";
$smarty->compile_dir = "template_c/";
$smarty->cache_dir = "cache/";
$smarty->config_dir = "config/";
if(empty($_POST)) {
$smarty->display('loan_redirect.tpl');
} else {
$smarty->assign($_POST);
$allyes = "http://www.redtoblack.co.uk/britishinsurance/singleapp.asp";
$other = "http://www.rhinoloans.com/leadbay-loan.html";
if (($_POST["paying"] == "NO" || $_POST["employed"] == "NO") ||
($_POST["over21"] == "NO" || $_POST["amount5to100"] == "NO" || $_POST['ukresident'] == "NO")) {
header("Location: $other");
} else {
header("Location: $allyes");
}
}
?>