Notice: session_start(): Ignoring session_start() because a session is already active (started from /home/s10251158/public_html/f_session.php on line 26) in /home/s10251158/public_html/f_session.php on line 26
導師註冊 3L tutor checkdisplaynum('$errpartnum'); "; } **/ if ($_SERVER["REQUEST_METHOD"] == "POST") { $email = testinput($_POST["email"]); $loginpw = testinput($_POST["password"]); $ename = testinput($_POST["ename"]); $ename = strtoupper($ename); $cname = testinput($_POST["cname"]); $nickname = testinput($_POST["nickname"]); $gender = testinput($_POST["teach_gender"]); $brith = testinput($_POST["brithyear"]); $national = testinput($_POST["national"]); $language = testinput($_POST["language"]); $belief = testinput($_POST["belief"]); $confirmemail = testinput($_POST["confirmemail"]); $confirmloginpw = testinput($_POST["confirmpassword"]); $val_safequestion = testinput($_POST['sel_safeq']); $val_otherq = testinput($_POST['other_safeq']); $val_safeq_ans = testinput($_POST['ansOfSaveq']); // informatin of step2 $fixaddress = testinput($_POST["fixedaddress"]); $estate = testinput($_POST["estate"]); $livearea = testinput($_POST["livearea"]); $mobile = testinput($_POST["mobile"]); //information of step 04 $findusway = testinput($_POST["findusway"]); $intro = testinput($_POST["intro"]); if (empty($_POST["email"]) || empty($_POST["password"]) || empty($_POST["ename"]) || empty($_POST["teach_gender"]) || empty($_POST["brithyear"]) || empty($_POST["fixedaddress"]) || empty($_POST["estate"]) || empty($_POST["livearea"]) || empty($_POST["mobile"]) || empty($_POST['sel_safeq']) || empty($_POST['ansOfSaveq']) || empty($_POST['intro'])){ //|| empty($_POST["max_class"]) $_SESSION["emptyErr2"] = errMsg("*此欄位必須填寫",'e'); } else { // information of step1 $errNum = 0; if (!preg_match("/^[a-zA-Z ]*$/", $ename)){ //echo "ename = ".$ename; $errNum++; $_SESSION['enameErr'] = errMsg("英文姓名不正確",'e'); } if ($cname != ""){ if (!preg_match("/^([\x7f-\xff ]+)$/", $cname)){ $errNum++; $_SESSION['cnameErr'] = errMsg("中文姓名不正確",'e'); } } if ($national != ""){ if (!preg_match("/^([a-zA-Z\x7f-\xff ]+)$/", $national)){ $errNum++; $_SESSION['nationalErr'] = errMsg("國藉請以英文或中文輸入",'e'); } } if ($belief != ""){ if (!preg_match("/^([a-zA-Z\x7f-\xff ]+)$/", $belief)){ $errNum++; $_SESSION['beliefErr'] = errMsg("宗教信仰請以英文或中文輸入",'e'); } } //check email // check if e-mail address is well-formed if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $_SESSION["loginemailErr"] = errMsg("電郵地址不正確",'e'); $errNum++; $_SESSION["errpart"] = 1; } else { if ($email <> $confirmemail){ $errNum++; $_SESSION["loginemailErr"] = errMsg("請確認登記電郵!",'e'); $_SESSION["errpart"] = 1; } $emailresult = checktemail($email); if ($emailresult == 0){ //echo "email correct"; } else { $_SESSION["loginemailErr"] = $_SESSION["loginemailErr"].errMsg("此電郵已被使用",'e'); $errNum++; $_SESSION["errpart"] = 1; } } if (!preg_match("/^[a-zA-Z0-9]*$/", $confirmloginpw)){ $errNum++; $_SESSION['loginpwErr'] = errMsg("密碼只接受英文或數字!",'e'); } if (!preg_match("/^[a-zA-Z0-9]*$/", $loginpw)){ $errNum++; $_SESSION['loginpwErr'] = errMsg("密碼只接受英文或數字!",'e'); } $loginpws = ""; if (strlen($loginpw) >= 8 & strlen($loginpw) <=10){ $loginpws = $loginpw; } else { $_SESSION["loginpwErr"] = $_SESSION["loginpwErr"].errMsg("密碼必須8至10字以內.",'e'); $errNum++; $_SESSION["errpart"] = 1; } if ($loginpw <> $confirmloginpw){ $_SESSION["loginpwErr"] = $_SESSION["loginpwErr"].errMsg("請確認登記密碼!",'e'); $errNum++; $_SESSION["errpart"] = 1; } //$val_safequestion = testinput($_POST['sel_safeq']); $final_safeq = $val_safequestion; if ($val_safequestion == 'other'){ if (empty($_POST['other_safeq'])){ $errNum++; $_SESSION['safeq'] = errMsg("如選擇其他安全問題,請在其他欄位填寫你的問題。",'e'); } else { $val_otherq = testinput($_POST['other_safeq']); $final_safeq = $val_otherq; } } //$val_safeq_ans = testinput($_POST['ansOfSaveq']); if(!filter_var($brith, FILTER_VALIDATE_INT)){ $_SESSION["ageErr2"] = errMsg("請選擇正確出身年份",'e'); $errNum++; $_SESSION["errpart"] = 1; } if(!filter_var($livearea, FILTER_VALIDATE_INT)){ $_SESSION["liveareaErr2"] = errMsg("請選擇正確住宅地區",'e'); $errNum++; $_SESSION["errpart"] = 1; } if(filter_var($mobile, FILTER_VALIDATE_INT)){ if (strlen($mobile) <> 8){ $_SESSION["mobileErr2"] = errMsg("*電話號碼不正確",'e'); $errNum++; $_SESSION["errpart"] = 1; } else { $firstnum = substr($mobile, 0,1); switch($firstnum){ case 2: break; case 3: break; case 5: break; case 6: break; case 9: break; default: $errNum++; $_SESSION["mobileErr2"] = errMsg("*電話號碼不正確",'e'); $_SESSION["errpart"] = 1;; } } } else { $errNum++; $_SESSION['mobileErr2'] = errMsg("*電話號碼不正確",'e'); } $errNum = $errNum + chkexisttel($mobile); $year = date('Y'); $year = substr($year,2); $day = date('d'); $month = date('m'); $postdate = date('Y-m-d'); $posttime = date('H:i:sa'); $findtotal = "Select t_id from teacher"; $totalresult = mysqli_query($conn, $findtotal); $total = mysqli_num_rows($totalresult); $total = $total +1; $finaltotal = addzero($total); $teacherid = "T".$year.$month.$day.$finaltotal; $checkedresult = checkteachid($teacherid); while ($checkedresult <> TRUE){ $checkedresult = checkteachid($teacherid); $total = $total +1; $finaltotal = addzero($total); $teacherid = "T".$year.$month.$day.$finaltotal; } $blistresult = chkblacklist($mobile, $email); if ($blistresult == false){ $errNum++; } if ($errNum == 0){ $sql_insert_teacher = "Insert into teacher (`tid`, `t_id`, `t_email`, `t_pw`,`t_ename`, `t_cname`, `t_nickname`, `t_sex`, `t_brith`,`t_nationality`, `t_language`, `t_religion`, `t_address`, `t_estate`, `t_district`, `t_mobile`, `t_intro`, `t_status`, `postday`, `posttime`, `t_saveq`, `t_saveq_ans`, `t_type`) VALUES ( NULL,'$teacherid', '$email', password('$loginpws'), '$ename', '$cname', '$nickname', '$gender', '$brith', '$national', '$language', '$belief', '$fixaddress', '$estate', '$livearea', '$mobile', '$intro', 'Pending', '$postdate', '$posttime','$final_safeq', '$val_safeq_ans', '1')"; /** $sql_insert_teacher = "Insert into teacher values (NULL,'$teacherid', '$email', password('$loginpws'), '$ename', '$cname', '$nickname', '$gender', '$brith', '$national', '$language', '$belief', '$fixaddress', '$estate', '$livearea', '$mobile', '$job', '$workexp', '$eduworkexp', '$eduworkdetail', '$can_teach_max', '$provide_notes', '$maxedu', '$imaedu', '$secschool' , '$secschoollang', '$highschool', '$specschool', '$university', '$other_university', '$university_lession', '$other_lession', '$other_spec_course', '$other_course', '$minpay', '$price', '$intro', 'Pending', '$postdate', '$posttime', '$maxstudy', '$maxmusic', '$maxother', '$maxlang', '$final_safeq', '$val_safeq_ans', '' )"; **/ if ($conn->query($sql_insert_teacher) === TRUE) { //echo $subjectname."record create
"; $_SESSION['finish_treg'] = errMsg("

已成功註冊為 3L Tutor 的導師!

我們會對閣下提供的資料進行審核。通過審核的資料會發佈到主頁上。

",'s'); $_SESSION['finish_treg'] .= errMsg("

請填寫可教授科目、地區、時間、學業履歷、工作履歷、理想時薪等資料,以便進行配對。

","blue"); $_SESSION['finish_t_id'] = $teacherid; $teachid = findtid($teacherid); $_SESSION['finish_tid'] = $teachid; UpoloadPostRecord($teachid, $postdate, $posttime); unsetTeachRegSession(); //header('Location: finhed_teachreg.php'); redirectto('finhed_teachreg.php'); } else { echo "Error creating '$teacherid': " . $conn->error."
"; } } } } else { unsetTeachRegSession(); } ?>

Notice: session_start(): Ignoring session_start() because a session is already active (started from /home/s10251158/public_html/f_session.php on line 26) in /home/s10251158/public_html/f_session.php on line 26
    
主頁 家長登記 導師登記 比較 聯絡我們

Notice: session_start(): Ignoring session_start() because a session is already active (started from /home/s10251158/public_html/f_session.php on line 26) in /home/s10251158/public_html/f_session.php on line 26

Warning: Undefined variable $link_with_sess in /home/s10251158/public_html/teach_menu.php on line 95

個人資料
*登記電郵: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 468
name="email" maxlength='255' value="
Warning: Undefined variable $email in /home/s10251158/public_html/techreg1_v3.php on line 468
" />
Warning: Undefined variable $email in /home/s10251158/public_html/techreg1_v3.php on line 471
*確認登記電郵: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 477
name="confirmemail" maxlength='255' value="
Warning: Undefined variable $confirmemail in /home/s10251158/public_html/techreg1_v3.php on line 477
" />
Warning: Undefined variable $confirmemail in /home/s10251158/public_html/techreg1_v3.php on line 479
*登記密碼: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 485
name="password" maxlength="10"/>(8~10字以內英文或數字)
*確認登記密碼: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 495
name="confirmpassword" maxlength="10"/>(8~10字以內英文或數字)
Warning: Undefined variable $confirmloginpw in /home/s10251158/public_html/techreg1_v3.php on line 498
*安全問題
Warning: Undefined variable $val_safequestion in /home/s10251158/public_html/techreg1_v3.php on line 528
*答案:
Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 540
value='
Warning: Undefined variable $val_safeq_ans in /home/s10251158/public_html/techreg1_v3.php on line 540
' />
Warning: Undefined variable $val_safeq_ans in /home/s10251158/public_html/techreg1_v3.php on line 542
*英文名稱: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 549
name="ename" maxlength='200' value="
Warning: Undefined variable $ename in /home/s10251158/public_html/techreg1_v3.php on line 549
" /> (必須與身份證相同)
Warning: Undefined variable $ename in /home/s10251158/public_html/techreg1_v3.php on line 552
中文名稱 : Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 560
name="cname" maxlength='200' value="
Warning: Undefined variable $cname in /home/s10251158/public_html/techreg1_v3.php on line 560
" /> (必須與身份證相同)
暱稱: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 566
name="nickname" maxlength='150' value="
Warning: Undefined variable $nickname in /home/s10251158/public_html/techreg1_v3.php on line 566
" />
*性別:
Warning: Undefined variable $gender in /home/s10251158/public_html/techreg1_v3.php on line 570

Warning: Undefined variable $gender in /home/s10251158/public_html/techreg1_v3.php on line 573

Warning: Undefined variable $gender in /home/s10251158/public_html/techreg1_v3.php on line 584
*出生年份:
Warning: Undefined variable $brith in /home/s10251158/public_html/techreg1_v3.php on line 609
國藉: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 616
name="national" maxlength='100' value="
Warning: Undefined variable $national in /home/s10251158/public_html/techreg1_v3.php on line 616
" />
主要語言:
宗教信仰: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 630
name="belief" maxlength='100' value="
Warning: Undefined variable $belief in /home/s10251158/public_html/techreg1_v3.php on line 630
" />
2. 聯絡資料
*固定住宅地址: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 640
name="fixedaddress" maxlength="255" value="
Warning: Undefined variable $fixaddress in /home/s10251158/public_html/techreg1_v3.php on line 640
"/>
Warning: Undefined variable $fixaddress in /home/s10251158/public_html/techreg1_v3.php on line 642
*居住屋苑: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 648
name="estate" maxlength='200' value="
Warning: Undefined variable $estate in /home/s10251158/public_html/techreg1_v3.php on line 648
" />
Warning: Undefined variable $estate in /home/s10251158/public_html/techreg1_v3.php on line 650
*住宅地區:
*聯絡電話: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 667
name="mobile" maxlength='8' value="
Warning: Undefined variable $mobile in /home/s10251158/public_html/techreg1_v3.php on line 667
" /> ( 2,3,5,6,9字頭香港電話號碼)
Warning: Undefined variable $mobile in /home/s10251158/public_html/techreg1_v3.php on line 670
其他資料
*自我介紹: Warning: Undefined variable $txtwidth in /home/s10251158/public_html/techreg1_v3.php on line 677
maxlength='100' value="
Warning: Undefined variable $intro in /home/s10251158/public_html/techreg1_v3.php on line 677
" />
認識3L tutor 途徑:




主頁
Facebook
收費表
導師參考收費表
常見問題
服務條款
廣告查詢
關於我們
網站地圖
Copyright © 2015 3L Tutor