$PAGE = "download";
include("./header.php");
$mag = "";
$name = "";
$email = "";
$org = "";
//print_r($_POST);
if ($_POST['sn'] == ""){
print_form($msg);
}else{
if ($_POST['email'] == ""){
$msg = "Please, fill out email address!!!";
}
if ($_POST['org'] == ""){
$msg = "Please, fill out organization address!!!";
}
if ($_POST['name'] == ""){
$msg = "Please, fill out name address!!!";
}
$name = $_POST['name'];
$email = $_POST['email'];
$org = $_POST['org'];
if ($msg == ""){
// email_send();
print_link();
}else{
print_form($msg);
}
}
function email_send(){
global $name, $email, $org;
$msg = "Program Request!!!
";
$msg .= "User:".$name."
";
$msg .= "Email:".$email."
";
$msg .= "Org:".$org."
";
$msg .= "IP:".$_SERVER['REMOTE_ADDR']."
";
$headers = "From: IGENT website\n";
$headers .= "MIME-Version: 1.42\n";
$headers .= "Content-Type: text/html; charset=EUC-KR\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$body = str_replace('\\"', '"', $msg);
$body = str_replace("\\'", "'", $body);
mail("intellims@gmail.com", "IGENT : program request", $body, $headers);
}
function print_link(){
?>
IGENT is currently at Version 1.5.
IGENT is currently at Version 1.5