assign("SITE_NAME",SITE_NAME); //print_r($_POST); $tmpl->assign("name","{$_POST['name']}"); $tmpl->assign("read_name","{$_POST['read_name']}"); $tmpl->assign("address","{$_POST['address']}"); $tmpl->assign("telephone","{$_POST['telephone']}"); $tmpl->assign("email1","{$_POST['email1']}"); $tmpl->assign("email2","{$_POST['email2']}"); $tmpl->assign("details","{$_POST['details']}"); if(!isset($_POST['mode']) || $_POST['mode'] == "") { $tmpl->assign("init",1); $tmpl->assign("form_disp",1); } if(isset($_POST['mode']) && $_POST['mode'] == "kakunin") { $tmpl->assign("kakunin",1); $tmpl->assign("form_disp",1); } if(isset($_POST['mode']) && $_POST['mode'] == "send") { $tmpl->assign("send",1); $body = <<flush(); ?>