--- contact.php 2001/03/12 20:05:04 1.9 +++ contact.php 2001/03/18 23:36:26 1.10 @@ -51,13 +51,13 @@ include("common.inc"); -if (! isset($mailto)) { - $main=$smarty->fetch("$main_file.tpl"); -} else { +if (isset($mailto) && check_required()) { $main="Your comment is sent to $mailto. Thank you."; include("quoted-printable.inc"); iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment); # $main.="
$mailto $fullname $mailfrom $country $subject $comment
"; +} else { + $main=$smarty->fetch("$main_file.tpl"); } $smarty->assign( array(MAIN=>$main, from=>$from,