$value) { if (is_array($value)) { $value = implode(",", $value); } $name = "$" . $key; $code = str_replace($name, $value, $code); } $code = str_replace('$ipaddress', $_SERVER['REMOTE_ADDR'], $code); return $code; } if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['formid']) && $_POST['formid'] == 'formRegister') { $mailto ='demo@schoolcheckin.com'; $mailfrom = 'sci_notify@schoolcheckin.com'; $subject = '21 Day Demo Request from Website'; $message = 'School Information
School Name | $schoolname
School Address | $addressline1 $addressline2
City |
$schoolcity
State |
$state
ZipCode |
$zipcode
School Phone Number | $schoolphone
_________________________________________________________
User Information
First Name | $fname
Last Name |
$lname
Email Address |
$email *This email address has been confirmed.
_________________________________________________________
IP Address
$ipaddress
'; $success_url = './register-success.html'; $error_url = ''; $eol = "\n"; $error = ''; $mail = new PHPMailer(true); try { $subject = ReplaceVariables($subject); $mail->Subject = stripslashes($subject); $mail->From = $mailfrom; $mail->FromName = $mailfrom; $mailto_array = explode(",", $mailto); for ($i = 0; $i < count($mailto_array); $i++) { if(trim($mailto_array[$i]) != "") { $mail->AddAddress($mailto_array[$i], ""); } } if (!ValidateEmail($mailfrom)) { $error .= "The specified email address is invalid!\n
"; throw new Exception($error); } $mail->AddReplyTo($mailfrom); $mail->CharSet = 'ISO-8859-1'; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0) { $mail->AddAttachment($_FILES[$key]['tmp_name'], $_FILES[$key]['name']); } } } $message = ReplaceVariables($message); $message = stripslashes($message); $mail->MsgHTML($message); $mail->IsHTML(true); $mail->Send(); header('Location: '.$success_url); } catch (Exception $e) { alert($e); $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $e->getMessage(), $errorcode); alert($errorcode); } exit; } ?> Download School Check IN Software Updates | School Check IN

Use the form below to register for our 21-day free software demo. All fields are required. Demos are limited to first time users only and should not be used for upgrades. Click Here if you need to upgrade your software.

*Asterisk indicates required fields.

School Information
Your Information