include("../../admin/config.php"); //$reg_id = uniqid(""); //$_POST['reg_id'] = $reg_id; $errors = array(); $errormsg = ''; $thanks = false; $edit = array(); if(isset($_POST['submit']) && $_POST['submit'] == 'Submit') { foreach($_POST as $key => $val) { $edit[$key] = stripslashes($val); } $requiredfields = array('teachername' => 'TEACHER NAME', 'teacheremail' => 'E-MAIL ADDRESS', 'school' => 'SCHOOL' ); $requirednames = array('teachername' => 'Teacher Name', 'teacheremail' => 'E-Mail Address', 'school' => 'School' ); $emailpattern = '^(mailto:)?[-!#$%&\'*+\\./0-9A-Z^_`a-z{|}~]+'. '@'. '([-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.)+' . '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+$'; foreach($requiredfields as $f => $val) { if(!isset($_POST[$f]) || $_POST[$f] == $val) { $errors[] = 'Please enter: '.$requirednames[$f]; } } if(isset($_POST['teacheremail']) && ($_POST['teacheremail'] != 'E-MAIL ADDRESS' && $_POST['teacheremail'] != '') && !ereg($emailpattern, stripslashes($_POST['teacheremail']))) { $errors[] = 'Please enter a valid email address (only one please).'; } else { $matches = array(); if(preg_match('/^mailto:(.+)/', $_POST['teacheremail'], $matches)) $edit['teacheremail'] = $matches[1]; } if(count($errors) == 0) { $defaults = array('teachername' => 'TEACHER NAME', 'teacheremail' => 'E-MAIL ADDRESS', 'school' => 'SCHOOL' ); foreach($_POST as $key => $value) { if(isset($defaults[$key]) && $value == $defaults[$key]) $value = ''; if($key != 'submit') $querystring .= ", $key = '$value'"; } $querystring = "insert into teachers set ".substr($querystring,1); mysql_query($querystring); $thanks = true; } else { $errormsg = '
| include("http://infurmation.com/includes/nav.php"); ?> |
include("http://infurmation.com/daf/2008/sidebar.php");
?>
Quick Pacs
Regional Quick Pacs, containing a summary of contest information, are available for Europe & International, [Europe & International: Croatia], North America, Russia, and UK and Ireland. All downloads are in Microsoft Word format and are under 300KB.
Teacher Mailing List
Teachers, institute Design Against Fur as a class project! We've had great enthusiasm in the past from student groups and their instructors, from schools all over the globe. We encourage you to involve your classes in the contest—not only is a great cause, it can lend diversity and distinction to design curriculum and result in nice recognition for your students and school. Register below to join the DAF Teacher Mailing List. We will be sending out specific updates for teachers at certain points during the contest.
if(file_exists('./daf08poster.php')) {
echo '
'; include("http://infurmation.com/daf/2008/daf08poster.php"); } ?> include("dafend.php"); ?> |