rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-AU"> <head> <title>University Residence Association at SVSU</title> <link rel="stylesheet" type="text/css" media="screen" title="URA Style" href="style.css" /> </head> <body> <div id="top"><a href="#content" class="doNotDisplay">Skip to main content.</a></div> <h1 id="header">University Residence Association at SVSU</h1> <div id="sidebar"> <?php include('http://www.svsu.edu/clubs/ura/navbar.php'); ?> </div> <div id="contents"> <h2>GLACURH 2006 Application</h2> <p><strong>If you have questions or comments about this application, please email <a href="mailto:rablocke@svsu.edu">Reggie Blockett</a> (rablocke@svsu.edu) or call him at extension 6309.</strong></p><?php $self = $_SERVER['PHP_SELF']; $name = htmlspecialchars($_POST['name'], ENT_NOQUOTES); $class = htmlspecialchars($_POST['class'], ENT_NOQUOTES); $room = htmlspecialchars($_POST['room'], ENT_NOQUOTES); $phone = htmlspecialchars($_POST['phone'], ENT_NOQUOTES); $cell = htmlspecialchars($_POST['cell'], ENT_NOQUOTES); $email = htmlspecialchars($_POST['email'], ENT_NOQUOTES); $aim = htmlspecialchars($_POST['aim'], ENT_NOQUOTES); $shirt = htmlspecialchars($_POST['shirt'], ENT_NOQUOTES); $staff = htmlspecialchars($_POST['staff'], ENT_NOQUOTES); $campus = htmlspecialchars($_POST['campus'], ENT_NOQUOTES); $conference = htmlspecialchars($_POST['conference'], ENT_NOQUOTES); $involvement = htmlspecialchars($_POST['involvement'], ENT_NOQUOTES); $why = htmlspecialchars($_POST['why'], ENT_NOQUOTES); $how = htmlspecialchars($_POST['how'], ENT_NOQUOTES); $schedule = htmlspecialchars($_POST['schedule'], ENT_NOQUOTES); $weekly = htmlspecialchars($_POST['weekly'], ENT_NOQUOTES); $spirit = htmlspecialchars($_POST['spirit'], ENT_NOQUOTES); $money = htmlspecialchars($_POST['money'], ENT_NOQUOTES); $date = date('r'); $selected = 'selected="selected"'; if ($class == "freshman") { $class_freshman = $selected; } if ($class == "sophomore") { $class_sophomore = $selected; } if ($class == "junior") { $class_junior = $selected; } if ($class == "senior") { $class_senior = $selected; } if ($class == "graduate") { $class_graduate = $selected; } if ($class == "other") { $class_other = $selected; } if ($shirt == "small") { $shirt_small = $selected; } if ($shirt == "medium") { $shirt_medium = $selected; } if ($shirt == "large") { $shirt_large = $selected; } if ($shirt == "extralarge") { $shirt_extralarge = $selected; } if ($shirt == "2xlarge") { $shirt_2xlarge = $selected; } if ($shirt == "3xlarge") { $shirt_3xlarge = $selected; } if ($staff == "no") { $staff_no = $selected; } if ($staff == "yes") { $staff_yes = $selected; } if ($campus == "first") { $campus_first = $selected; } if ($campus == "second") { $campus_second = $selected; } if ($campus == "third") { $campus_third = $selected; } if ($campus == "fourth") { $campus_fourth = $selected; } if ($campus == "fifth") { $campus_fifth = $selected; } if ($campus == "sixth") { $campus_sixth = $selected; } if ($campus == "seventh") { $campus_seventh = $selected; } if ($campus == "other") { $campus_other = $selected; } $form = <<<EOT <p>You are required to answer all questions.</p> <form method="post" action="$self"> <fieldset> <legend>Aplication Form</legend> <fieldset style="width: 225px; float: left;"> <legend>Personal Info</legend> <p id="namefield"> <label for="name">Name:</label> <input type="text" id="name" name="name" size="30" value="$name" /> </p> <p id="classfield"> <label for="class">Class Standing (based on credits):</label> <select id="class" name="class"> <option value=""></option> <option value="freshman" $class_freshman >Freshman</option> <option value="sophomore" $class_sophomore >Sophomore</option> <option value="junior" $class_junior >Junior</option> <option value="senior" $class_senior >Senior</option> <option value="graduate" $class_graduate >Graduate</option> <option value="other" $class_other >Other</option> </select> </p> <p id="roomfield"> <label for="room">Room:</label> <input type="text" id="room" name="room" size="30" value="$room" /> </p> <p id="phonefield"> <label for="phone">Room Phone:</label> <input type="text" id="phone" name="phone" size="30" value="$phone" /> </p> <p id="cellfield"> <label for="cell">Cell/Alternate Phone:</label> <input type="text" id="cell" name="cell" size="30" value="$cell" /> </p> <p id="emailfield"> <label for="phone">Email:</label> <input type="text" id="email" name="email" size="30" value="$email" /> </p> <p id="aimfield"> <label for="aim">AIM Screen Name:</label> <input type="text" id="aim" name="aim" size="30" value="$aim" /> </p> <p id="shirtfield"> <label for="shirt">Shirt Size:</label> <select id="shirt" name="shirt"> <option value=""></option> <option value="small" $shirt_small >Small</option> <option value="medium" $shirt_medium >Medium</option> <option value="large" $shirt_large >Large</option> <option value="extralarge" $shirt_extralarge >Extra Large</option> <option value="2xlarge" $shirt_2xlarge >2X Large</option> <option value="3xlarge" $shirt_3xlarge >3x Large</option> </select> </p> <p id="stafffield"> <label for="staff">On Residential Life Staff:</label> <select id="staff" name="staff"> <option value=""></option> <option value="no" $staff_no >No</option> <option value="yes" $staff_yes >Yes</option> </select> </p> <p id="campusfield"> <label for="campus">Years on campus:</label> <select id="shirt" name="shirt"> <option value=""></option> <option value="first" $campus_first >First Year</option> <option value="second" $campus_second >Second Year</option> <option value="third" $campus_third >Third Year</option> <option value="fourth" $campus_fourth >Fourth Year</option> <option value="fifth" $campus_fifth >Fifth Year</option> <option value="sixth" $campus_sixth >Sixth Year</option> <option value="seventh" $campus_seventh >Seventh Year</option> <option value="other" $campus_other >Other</option> </select> </p> </fieldset> <fieldset style="width: 500px; float: right;"> <legend>Application Questions</legend> <p id="conferencefield"> <label for="conference">1. Have you ever attended a conference before? If so, which ones? (Please be specific. For example, GLACURH 2004 or MORHA 2005.)</label> <textarea id="conference" name="conference" rows="5" cols="50">$conference</textarea></td> </p> <p id="involvementfield"> <label for="involvement">2. What is your involvement in URA and or/ your residence hall?</label> <textarea id="involvement" name="involvement" rows="5" cols="50">$involvement</textarea></td> </p> <p id="whyfield"> <label for="why">3. Why do you want to go to GLACURH? What makes you a good delegate?</label> <textarea id="why" name="why" rows="5" cols="50">$why</textarea></td> </p> <p id="howfield"> <label for="how">4. How do you plan to bring back your experience from GLACURH to SVSU?</label> <textarea id="how" name="how" rows="5" cols="50">$how</textarea></td> </p> <p id="schedulefield"> <label for="schedule">5. Please list any and all prior engagements that may interfere with delegation meeting. (For example, work, class, and clubs.) What priorities rank above GLACURH when it comes to time commitments?</label> <textarea id="schedule" name="schedule" rows="5" cols="50">$schedule</textarea></td> </p> <p id="weeklyfield"> <label for="weekly">6. Will you be able to meet with the conference delegation at least once a week? </label> <textarea id="weekly" name="weekly" rows="5" cols="50">$weekly</textarea></td> </p> <p id="spiritfield"> <label for="spirit">7. A very big part of the conference is showing school spirit. You will be representing SVSU to people from all around the region, so how will you show you are from Saginaw Valley State University while at the conference?</label> <textarea id="spirit" name="spirit" rows="5" cols="50">$spirit</textarea></td> </p> <p id="moneyfield"> <label for="money">8. To what extent will you be able to contribute financially to the cost of the conference? (For example paying out-of-pocket or through fundraising.)</label> <textarea id="money" name="money" rows="5" cols="50">$money</textarea></td> </p> </fieldset> <br style="clear: both;" /> <p style="padding: 5px; margin-top: 10px; background-color: #eee; border: 1px solid black; text-align: center;"> <input type="submit" id="submit" name="submit" value="Apply" /> </p> </fieldset> </form>EOT; if(isset($_POST['submit'])) { $message = "Name: " . $name . "\r\n\r\n"; $message .= "Class Standing: " . $class . "\r\n"; $message .= "Room: " . $room . "\r\n"; $message .= "Room Phone: " . $phone . "\r\n"; $message .= "Alternate Phone: " . $cell . "\r\n"; $message .= "Email: " . $email . "\r\n"; $message .= "AIM: " . $aim . "\r\n"; $message .= "Shirt Size: " . $shirt . "\r\n"; $message .= "Res Life Staff: " . $staff . "\r\n"; $message .= "How Long On Campus: " . $campus . "\r\n\r\n"; $message .= "Question 1: " . $conference . "\r\n\r\n"; $message .= "Question 2: " . $involvement . "\r\n\r\n"; $message .= "Question 3: " . $why . "\r\n\r\n"; $message .= "Question 4: " . $how . "\r\n\r\n"; $message .= "Question 5: " . $schedule . "\r\n\r\n"; $message .= "Question 6: " . $weekly . "\r\n\r\n"; $message .= "Question 7: " . $spirit . "\r\n\r\n"; $message .= "Question 8: " . $money . "\r\n\r\n"; $message = wordwrap($message, '70'); $headers = "From: " . $name . "<" . $email . ">\r\n"; $headers .= "Date: " . $date . "\r\n"; $isError = 0; $errorMessage = '<div class="special"><ul> '; if ( empty($name) || empty($class) || empty($room) || empty($phone) || empty($cell) || empty($email) || empty($aim) || empty($shirt) || empty($staff) || empty($campus) || empty($conference) || empty($involvement) || empty($why) || empty($how) || empty($schedule) || empty($weekly) || empty($spirit) || empty($money) ) { $isError = 1; if (empty($name)) { $errorMessage .= '<li>Please fill out your <a href="#namefield">Name</a>.</li>'; } if (empty($class)) { $errorMessage .= '<li>Please fill out your <a href="#classfield">Class Standing</a>.</li>'; } if (empty($room)) { $errorMessage .= '<li>Please fill out your <a href="#roomfield">Campus Room</a>.</li>'; } if (empty($phone)) { $errorMessage .= '<li>Please fill out your <a href="#phonefield">Campus Phone Number</a>.</li>'; } if (empty($cell)) { $errorMessage .= '<li>Please fill out your <a href="#cellfield">Cell/Alternate Phone Number</a>.</li>'; } if (empty($email)) { $errorMessage .= '<li>Please fill out your <a href="#emailfield">Email Address</a>.</li>'; } if (empty($aim)) { $errorMessage .= '<li>Please fill out your <a href="#aimfield">AIM Screen Name</a>.</li>'; } if (empty($shirt)) { $errorMessage .= '<li>Please fill out your <a href="#shirtfield">Shirt Size</a>.</li>'; } if (empty($staff)) { $errorMessage .= '<li>Please mark whether or not you are on <a href="#stafffield">Residential Life Staff</a>.</li>'; } if (empty($campus)) { $errorMessage .= '<li>Please fill how long you have <a href="#campusfield">Lived on Campus</a>.</li>'; } if (empty($conference)) { $errorMessage .= '<li>Please answer <a href="#conferencefield">Question 1</a>.</li>'; } if (empty($involvement)) { $errorMessage .= '<li>Please answer <a href="#involvementfield">Question 2</a>.</li>'; } if (empty($why)) { $errorMessage .= '<li>Please answer <a href="#whyfield">Question 3</a>.</li>'; } if (empty($how)) { $errorMessage .= '<li>Please answer <a href="#howfield">Question 4</a>.</li>'; } if (empty($schedule)) { $errorMessage .= '<li>Please answer <a href="#schedulefield">Question 5</a>.</li>'; } if (empty($weekly)) { $errorMessage .= '<li>Please answer <a href="#weeklyfield">Question 6</a>.</li>'; } if (empty($spirit)) { $errorMessage .= '<li>Please answer <a href="#spiritfield">Question 7</a>.</li>'; } if (empty($money)) { $errorMessage .= '<li>Please answer <a href="#moneyfield">Question 8</a>.</li>'; } } if ( !empty($email) && !eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) { $isError = 1; $errorMessage .= '<li>Your <a href="#emailfield">Email Address</a> is not valid.</li>'; } if ($isError == 1) { echo($errorMessage . "</ul></div>"); echo($form); } else { if (mail("rswalker@svsu.edu", "GLACURH 2006 Application", $message, $headers)) { echo('<div class="special"><p>Thanks for your application!</p></div>'); } else { echo('<div class="special"><p>We\'re sorry but there was an error sending your application. Please try again later.</p></div>'); echo($form); } } } else { echo $form; }?> </div> </body></html>