if (isset($_POST['submit']) && ($_POST['submit'] == 'registration')){ if (isset($_POST['name'])){ $name = $_POST['name']; } else { $name = " "; } if (isset($_POST['email'])){ $email = $_POST['email']; } else { $email = " "; } if (isset($_POST['phone'])){ $phone = $_POST['phone']; } else { $phone = " "; } if (isset($_POST['techcom'])){ $techcom = $_POST['techcom']; } else { $techcom = " "; } if (isset($_POST['category'])){ $category = $_POST['category']; } else { $category = " "; } if (isset($_POST['description'])){ $description = $_POST['description']; } else { $description = " "; } $content = " The following information was submitted using the Call for Topical Conference and Track Suggestions Form: Name: $name Email: $email Phone: $phone Technical Committee: $techcom Category: $category Description: $description "; // $to = "tcox@ashrae.org"; $from = "$email"; $from_header = "From: $from"; $subject = "Call for Topical Conference and Track Suggestions Form Submission"; mail($to, $subject, $content, $from_header); echo ""; }// if ?>