'; } else { echo '學號: ' . $Student_id . ' (不符合學號格式)' . '
' ; } $Name = $_REQUEST['Name']; echo '姓名: ' . $Name . '
'; $Account = $_REQUEST['Account']; echo '帳號: ' . $Account . '
'; $Password = $_REQUEST['Password']; if (preg_match('/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9]{8,}/', $Password)) { echo '密碼: ' . $Password . ' (符合密碼格式)' . ', 加密後密碼: ' . md5($Password) . '
'; } else { echo '密碼: ' . $Password . ' (不符合密碼格式)' . ', 加密後密碼: ' . md5($Password) . '
'; } $Telephone = $_REQUEST['Telephone']; if (preg_match('/09[0-9]{2}-[0-9]{6}$/', $Telephone)) { echo '電話號碼: ' . $Telephone . ' (符合電話格式)' . '
'; } else { echo '電話號碼: ' . $Telephone . ' (不符合電話格式)' . '
'; } $Email = $_REQUEST['Email']; echo 'Email: ' . $Email . '
'; $Address = $_REQUEST['Address']; echo '地址: ' . $Address . '
'; ?>