Application Form

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of /home/hkhandbell/www/www/includes/menu.inc).
Mandatory Field"; if (!empty($_POST)) { $name = trim(@$_POST['name']); $name_en = trim(@$_POST['name_en']); $sex = trim(@$_POST['sex']); $year = trim(@$_POST['year']); $month = trim(@$_POST['month']); $day = trim(@$_POST['day']); $career = trim(@$_POST['career']); $contact_person = trim(@$_POST['contact_person']); $tel = trim(@$_POST['tel']); $email = trim(@$_POST['email']); $know = trim(@$_POST['know']); $others = trim(@$_POST['others']); $code = trim(@$_POST['code']); if(!$name) @$error['name'] = $empty_msg; if(!$name_en) @$error['name_en'] = $empty_msg; if(!$sex) @$error['sex'] = $empty_msg; if(!$year || !$month || !$day) @$error['date'] = $empty_msg; if(!$career) @$error['career'] = $empty_msg; if(!$contact_person) @$error['contact_person'] = $empty_msg; if(!$tel) @$error['tel'] = $empty_msg; if(!$email) @$error['email'] = $empty_msg; else if(!valid_email_address($email)) @$error['email'] = "
Email is incorrect"; if(!$know) @$error['know'] = $empty_msg; if($know=='Other' && !$others) @$error['others'] = $empty_msg; if(!isset($_SESSION)) { session_start(); } if(!$code) @$error['code'] = "
Please fill in Verification code"; else if(@$_SESSION['CAPTCHA']['code'] != $code) @$error['code'] = "
Verification code is incorrect,Please enter again"; if(count($error) == 0) { $page_title = "香港手鈴藝術學院課程報名"; $to = $email; $admin_mail = variable_get('course_address', ''); $from = "info@hkhandbell.com"; //$subject = $page_title; $subject = '=?UTF-8?B?'.base64_encode($page_title).'?='; $message = ""; try { $fp = fopen("sites/all/themes/hkhandbell/apply_form_template.html","r"); while(!feof($fp)) { $message .= fread($fp,1024); } } catch (Exception $e) { @$error['submit'] = "傳送報名表發生錯誤,請與管理員聯絡。"; } if(count($error) == 0) { $headers = 'Content-type: text/html; charset=UTF-8' . "\r\n"; $headers .= "From: $from\r\n"; //$headers .= "Bcc: [email]" . $admin_mail; $intro_msg = "Hello, thank you for your application, you submit the following information:"; $message = str_replace("#@page_title",$page_title,$message); $message = str_replace("#@message",$intro_msg,$message); $message = str_replace("#@course_no",@$_GET['no'],$message); $message = str_replace("#@course_nm",@$_GET['cname'],$message); $message = str_replace("#@name",$name,$message); $message = str_replace("#@en_name",$name_en,$message); $message = str_replace("#@sex",$sex,$message); $message = str_replace("#@birthdate",$year . '年' . $month . '月' . $day . '日',$message); $message = str_replace("#@career",$career,$message); $message = str_replace("#@contact_person",$contact_person,$message); $message = str_replace("#@tel",$tel,$message); $message = str_replace("#@email",$email,$message); if($know == 'Other') $message = str_replace("#@know",$others,$message); else $message = str_replace("#@know",$know,$message); $message = str_replace("#@national",@$_POST['national'],$message); $message = str_replace("#@student_year",@$_POST['student_year'],$message); $message = str_replace("#@school_name",@$_POST['school_name'],$message); $message = str_replace("#@level",@$_POST['level'],$message); $message = str_replace("#@2level",@$_POST['level2'],$message); $message = str_replace("#@music_level",@$_POST['music_level'],$message); $message = str_replace("#@other_level",@$_POST['other_level'],$message); $message = str_replace("#@address",@$_POST['address'],$message); if(@$_POST['info']) $message = str_replace("#@info_accept","I do not want to receive information on the Hong Kong Handbell Academy",$message); else $message = str_replace("#@info_accept","I want to receive information on the Hong Kong Handbell Academy",$message); // now lets send the email. mail($to, $subject, $message, $headers); mail($admin_mail, $subject, $message, $headers); } else drupal_set_message($error['submit']); } } ?>
Course No.:
Application Course:
Applicant Name*:
 
(Chinese) (Eng)
Gender*:/>M     />F
Date of Birth*: /  / 
Nationality:
Occupation*:
Grade students enrolled:
School / Company:
Handbell Level:
Handbell Experience:
Music Theory Level:
Other Music Skill & Level:
Contact Information:
Contact Person*:
Contact No.*:
Email*:
Address:
How do you know us?*
Verification code:
Cant see it
Please fill in Verification code*:
 /> I do not want to receive information on the Hong Kong Handbell Academy
 
Registration form has been submitted successfully!
香港手鈴藝術學院