is_valid)) { $errors = 1; } } if ($_POST['submitform'] && !$errors) { foreach ($_POST['graduated_programs'] as $id) { $SQL_graduated_programs .= $id.","; } $SQL_graduated_programs = substr($SQL_graduated_programs, 0, strlen($SQL_graduated_programs)-1); $addsql = "insert into users (prog, firstname, lastname, nickname, company, email, password, ementoring, gradcredits, graduated_programs, address1, address2, city, state, zipcode, phone_home, cell_home, school_district, current_school, school_website, school_address, school_city, school_state, school_zip, phone_school, school_grade, school_subjects, total_years_teaching, ways_contributed, like_help, disseminate, principal_name, principal_email, asstsuperintendent_name, asstsuperintendent_email, superintendent_name, superintendent_email, lastmodified) values ($prog, '$firstname', '$lastname', '$nickname', '$company', '$email', '$password', '$ementoring', '$gradcredits', '$SQL_graduated_programs', '$address1', '$address2', '$city', '$state', '$zipcode', '$phone_home', '$cell_home', '$school_district', '$current_school', '$school_website', '$school_address', '$school_city', '$school_state', '$school_zip', '$phone_school', '$school_grade', '$school_subjects', '$total_years_teaching', '$ways_contributed', '$like_help', '$disseminate', '$principal_name', '$principal_email', '$asstsuperintendent_name', '$asstsuperintendent_email', '$superintendent_name', '$superintendent_email', '$lastmodified' )"; $adduser = db_exec_sql($addsql, "webdb"); $user_id = $_SESSION[lastinsert]; if ($adduser) { $app_id = $_SESSION[lastinsert]; switch($_POST['prog']) { case 1 : $program = "LTI"; break; case 2 : $program = "LTII"; break; case 3 : $program = "LTIII"; break; } $recip = "efoy@leadershipteacher.org"; //$recip = "david@wedu.com"; //$recip = "kimball@wedu.com"; //$recip = "jeremy@wedu.com"; mail($recip, "Leadership Teacher Application ($program)", "$_POST[firstname] $_POST[lastname] has completed an online application form. To view this application, go to: \n\n \n\nNote: You must be logged in to view this link.", "From: Leadership Teacher \nX-Mailer: PHP/" . phpversion(). "/qmail"); //$headers .= 'Cc: birthdayarchive@example.com' . "\r\n"; $email_list = $_POST['email']; //if ($_POST['principal_email']) {$email_list = $email_list .', '. $_POST['principal_email'];} //if ($_POST['asstsuperintendent_email']) {$email_list = $email_list .', '. $_POST['asstsuperintendent_email'];} //if ($_POST['superintendent_email']) {$email_list = $email_list .', '. $_POST['superintendent_email'];} mail($email_list, "Leadership Teacher Application Received", "Dear ".$_POST['firstname']." ".$_POST['lastname'].",\n\nYour application has been received, and will be processed shortly.\n\nIf you have any questions regarding your application, please send an email to: info@leadershipteacher.org or contact us via telephone: (603) 715-5515.", "From: Leadership Teacher \nX-Mailer: PHP/" . phpversion(). "/qmail"); if($applying_for){ while(list($var,$value) = each($applying_for)){ $perm = explode("-",$value); //print "INSERT INTO group_member SET user_id='$user_id', group_id='$perm[0]', level='5'
"; db_exec_sql("INSERT INTO group_member SET user_id='$user_id', group_id='$perm[0]', level='5'","webdb"); } } } $success = 1; } ?>
Application Form for LTI: Real World Workshops..."; break; case 2 : print "

Application Form for LTII: Design and Implementation Seminar

"; break; case 3 : print "

Application Form for LTIII: Real World Teaching Conference Planning Committee

"; break; } ?>
Success:
Your application has been sent successfully! You will be contacted shortly to confirm your application.

click here for a printable version of your application.

Please print a copy of this application and have it signed by your school Principal, Assistant Superintendent or Superintendent.


Mail signed copy to:

Leadership Teacher
PO Box 2255
Concord, NH 03301

An Error Occured
Please be sure that you have provided all of the required fields.


Personal Information
Please complete all required contact fields [*] below.

***IMPORTANT***: If you are already a member of Leadership Teacher and have an account on this system, please log in using the 'Member Login' form (-->) before continuing.
* First Name: