$value) { $value = stripslashes($value); $vars .= "$key = $value
"; } print "$vars"; exit(); */ $name = $_POST['name']; $email1 = $_POST['email1']; $email2 = $_POST['email2']; $weight = $_POST['weight']; $height = $_POST['height']; $day = $_POST['day']; $month = $_POST['month']; $year = $_POST['year']; $interests = $_POST['interests']; // Error handling for missing data if ((!$name) || (!$email1) || (!$email2) || (!$day) || (!$month) || (!$year) || (!$weight) || (!$height) || (!$interests)) { $errorMsg = 'ERROR: You did not submit the following required information:

'; if(!$name){ $errorMsg .= ' * Name
'; } if(!$email1){ $errorMsg .= ' * Email Address
'; } if(!$email2){ $errorMsg .= ' * Confirm Email Address
'; } if(!$day){ $errorMsg .= ' * Day of Birth
'; } if(!$month){ $errorMsg .= ' * Month of Birth
'; } if(!$year){ $errorMsg .= ' * Year of Birth
'; } if(!$weight){ $errorMsg .= ' * Weight
'; } if(!$height){ $errorMsg .= ' * Height
'; } if(!$interests){ $errorMsg .= ' * Interests
'; } } else if ($email1 != $email2) { $errorMsg = 'ERROR: Your Email fields below do not match
'; } else { // Error handling is ended, process the data and add member to database //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $dateofbirth = $year . "-" . $month . "-" . $day; //!!!!!!!!!!!!!!!!!!!!!!!!! Email User the activation link !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! $to = "sir@trashed4cash.com"; $from = "$email1"; $subject = "Trashed4Cash Application"; //Begin HTML Email Message $message = " Name: $name Email Address: $email1 Date of Birth: $dateofbirth Height: $height Weight: $weight Interests: $interests "; //end of message $headers = "From: $from\r\n"; $headers .= "Content-type: text\r\n"; mail($to, $subject, $message, $headers); } // Close else after duplication checks } else { // if the form is not posted with variables, place default empty variables $errorMsg = "Fields marked with an [ * ] are required"; $name = ""; $email1 = ""; $email2 = ""; $day = ""; $month = ""; $year = ""; $height = ""; $weight = ""; $interests = ""; } ?> Trashed4Cash.com

Application Form
Name: * " size="32" maxlength="20" />
Email Address: * " size="32" maxlength="48" />
Confirm Email: * " size="32" maxlength="48" />
Height: * " size="32" maxlength="48" />
Weight: * " size="32" maxlength="48" />
Date of Birth: *
Interests: *
i.e. Do you like gags, blindfolds, hoods, cbt, spanking, etc
 


 
Back