2nd Northwestern Summer School in Probability

SNAP 2018

Northwestern University
July 16th-July 26th, 2018



Registration Form



Registrations are open until March 1st 2018


"; // Check for empty fields if(empty($_POST['fname']) || empty($_POST['lname']) || empty($_POST['email']) || empty($_POST['affil']) || empty($_POST['support']) || empty($_POST['status']) || empty($_POST['citizen']) || empty($_POST['advisor_field'])) { $errors .= "\n\n Error: all fields are required
"; } // Get all the values from input $name = $_POST['fname']; $name = $name.$_POST['lname']; $email_address = $_POST['email']; $namef = $_POST['fname']; $namel = $_POST['lname']; $affill= $_POST['affil']; $suppor = $_POST['support']; $citiz = $_POST['citizen']; $stato = $_POST['status']; $adv = $_POST['advisor_field']; // Check the email address if (!eregi( "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email_address)) { if ($errors === "") { $errors .= "\n\n Error: Invalid email address
"; } } // Now Generate a random string to be used as the boundary marker $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x"; // Now Store the file information to a variables for easier access $tmp_name = $_FILES['filename']['tmp_name']; $type = $_FILES['filename']['type']; $file_name = $_FILES['filename']['name']; $size = $_FILES['filename']['size']; $errore = $_FILES['filename']['error']; if ($errore === UPLOAD_ERR_INI_SIZE) { $errors .= "\n\n Error: the attached file is too big! Please attach a file smaller than 2MB
"; } if(($file_name === "")) { $errors .= "\n\n Error: you must attach your CV or transcript
"; } if(!($errors === "")) { print "".$errors."
"; }else { // Now here we setting up the message of the mail $message = "\n\n First Name: $namef\n\n Last Name: $namel\n\n Email: $email_address\n\n Affiliation: $affill\n\n Status: $stato\n\n US Citizen or LPR: $citiz\n\n Requesting Support: $suppor\n\n Short statement: $adv\n\n"; if($file_name === "") { $headers = "From: SNAP Registration Form "; }else { $message = $message."Here is your file: $file_name"; // Check if the upload succeded, the file will exist if (file_exists($tmp_name)){ // Check to make sure that it is an uploaded file and not a system file if(is_uploaded_file($tmp_name)){ // Now Open the file for a binary read $file = fopen($tmp_name,'rb'); // Now read the file content into a variable $data = fread($file,filesize($tmp_name)); // close the file fclose($file); // Now we need to encode it and split it into acceptable length lines $data = chunk_split(base64_encode($data)); } // Now we'll build the message headers $headers = "From: $from\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: multipart/mixed;\r\n" . " boundary=\"{$mime_boundary}\""; // Next, we'll build the message body note that we insert two $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n"; // Now we'll insert a boundary to indicate we're starting the attachment $message .= "--{$mime_boundary}\n" . "Content-Type: {$type};\n" . " name=\"{$file_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; } } // Thats all.. Now we need to send this mail... :) if (@mail($to, $subject, $message, $headers)) { ?>

Thank you for applying to the Summer Northwestern Analysis Program!

We have received your registration information.

Please print out this confirmation page for your records.


First Name: $namef
\n"; print "Last Name: $namel
\n"; print "Email: $email_address
\n"; print "Affiliation: $affill
\n"; print "Status: $stato
\n"; print "US Citizen or LPR: $citiz
\n"; print "Requesting Support: $suppor
\n"; print "Short statement: $adv
\n"; print "Attached file name: $file_name
\n"; ?>

There was an error while submitting the form!
It may help to delete symbols such as ` : ; - etc.
If the problem persists please contact SNAP@math.northwestern.edu about it!


Registration for the 2nd Northwestern Summer School in Probability, July 16-July 25, 2018.

All participants must register online, even those who are not applying for funding. If demand exceeds the number of available spots, priority will be given to those who register before March 1, 2018.

Priority for funding will be given to those requesting support before March 1, 2018.

All fields are required.






Undergraduate Student Graduate Student Recent Ph.D. Other


Yes No



Yes No

Participants who are accepted for funding will have accommodation provided and some reimbursement of travel costs.


If you are currently an undergraduate student we request a letter of recommendation for you, preferably from one of your mathematics professors. Please ask your letter writer to send a short letter to auffing@math.northwestern.edu describing how your attendance at SNAP will be beneficial to you.

Before submitting this form, please make sure that you filled in all the required information, and selected your CV/transcript file. After clicking "Send Message", this form will be cleared, so if any information is missing you will have to input everything again

Once your registration form is received, you will see a confirmation page.