these should come from the settings table in database $stage = $stages['vote']; $year = "2007"; // var initializations $error = false; $error_fields = array(0=>false); $error_count = 0; $success = false; /* CONTROLLERS */ if($_POST['submit']) { switch($stage) { /* NOMINATIONS */ case $stages['nominate']: // Send Email Nomination // this should go into a database late $to = 'nominations@aigany.org'; $subject = 'Board Nomination'; $headers = 'From: "'.strip_tags($_POST['name']).'" <'. strip_tags($_POST['email']) . ">\r\n"; $message = "NOMINEE:\r\n".strip_tags($_POST['nominee'])."\r\n\r\n"; $message .= "CONTACT:\r\n".strip_tags($_POST['contact'])."\r\n\r\n"; $message .= "COMPANY:\r\n".strip_tags($_POST['company'])."\r\n\r\n"; $message .= "DISCIPLINE:\r\n".strip_tags($_POST['discipline'])."\r\n\r\n"; $message .= "WHY:\r\n".strip_tags($_POST['notes'])."\r\n\r\n"; if( mail($to, $subject, $message, $headers) ) $success = "
Thanks for participating in the nominating process. Your nomination has been forwarded to the New York Chapter board officers for ballot consideration. The ballot will be posted in April for ratification by the membership.
"; break; /* VOTING */ case $stages['vote']: if( !isset($_POST['vote']) ) { $error .= 'Thanks for participating in the ratification process. Your vote has been cast. The final board nominees will be posted in June.
"; else $error = "Sorry, there has been a technical problem. Please try again later.
"; } break; default: die("Sorry, an error occurred."); } } /* VIEWS */ ?>![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
|||||||||||
|
|
||||||||||||