You forgot to enter your First Name!
'; } //checks for entered name if (strlen($last_name) > 0){ $last_name = stripslashes($last_name); } else { //if no name was entered $message .= 'You forgot to enter your Last Name!
'; } //checks for entered email if (strlen($email) > 0){ $email = stripslashes($email); } else { //if no email was entered $message .= 'You forgot to enter your Email Address!
'; } if($radiobuttonyes){ $dualdegree = "is interested in the Lauder Dual Degree Program with the $language track."; } else { $dualdegree = 'is not interested in the Lauder Dual Degree Program.'; } if($radiobuttonwharton){ $otherprograms1 = 'is interested in the Wharton/School of Advanced International Studies (MBA/MA)'; } if($radiobuttonhealth){ $otherprograms2 = 'is interested in the Health Care Management Major'; } if ($first_name && $last_name && $email) { $name = $first_name . ' ' . $last_name; $body = "$name has registered with Out For Business! $first_name prefers to be called : $preferred Email Address: $email Phone Number: $phone $preferred will graduate in : $gradyear $preferred identifies as (a) : $identity Current Career Trank: $career Post MBA Career Goal: $postcareer $preferred $dualdegree $preferred $otherprograms1 $preferred $otherprograms2 $preferred has these questions/comments: $comments"; $reply = "Dear $name, Thank you for registering with OutForBusiness. We will be in contact soon with more news and information.\n Thanks, The OutForBusiness Board Members"; mail('jonnypaints@gmail.com','New Person Registered!',"$body",'From: OutForBusiness'); mail("$email",'Thank You for Registering!',"$reply",'From: OutForBusiness'); echo 'Thank you for registering with OutForBusiness!Please make sure the form is filled out correctly.
'; } if (isset($message)) { echo '', $message, ''; } ?>