[問題]會員註冊出現問題!!(已解決)
發表於 : 2005-01-28 17:53
代碼: 選擇全部
else if ( $mode == 'register' )
{
if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) || empty($userrealname) || empty($commend) || empty($mobilephone) || empty($address) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
代碼: 選擇全部
//check gradeclass start 期班的選擇
if ( $mode == 'register' )
{
if ( $usergradeclass_1 != '' && ( $usergradeclass_2 != '' || $usergradeclass_3 != '' || $usergradeclass_4 != '' ))
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['gradeclass_double'];
}
else if ( $usergradeclass_2 != '' && ( $usergradeclass_3 != '' || $usergradeclass_4 != '' ))
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['gradeclass_double'];
}
else if ( $usergradeclass_3 != '' && $usergradeclass_4 != '' )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['gradeclass_double'];
}
if (!$error)
{
if ( $usergradeclass_1 != '' )
{
$usergradeclass = $usergradeclass_1;
}
else if ( $usergradeclass_2 != '' )
{
$usergradeclass = $usergradeclass_2;
}
else if ( $usergradeclass_3 != '' )
{
$usergradeclass = $usergradeclass_3;
}
else if ( $usergradeclass_4 != '' )
{
$usergradeclass = $usergradeclass_4;
}
}
if ( empty($usergradeclass) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
//check gradeclass end
代碼: 選擇全部
if (!$error)
{
if ( $usergradeclass_1 != '' )
{
$usergradeclass = $usergradeclass_1;
}
else if ( $usergradeclass_2 != '' )
{
$usergradeclass = $usergradeclass_2;
}
else if ( $usergradeclass_3 != '' )
{
$usergradeclass = $usergradeclass_3;
}
else if ( $usergradeclass_4 != '' )
{
$usergradeclass = $usergradeclass_4;
}
}
代碼: 選擇全部
if ( empty($usergradeclass) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
//check gradeclass end
代碼: 選擇全部
if ( $mode == 'register' )
{
$usergradeclass = '';
if (($usergradeclass_1 != '') && ($usergradeclass_2 == '') && ($usergradeclass_3 == '') && ($usergradeclass_4 == ''))
$usergradeclass = $usergradeclass_1;
else if (($usergradeclass_1 == '') && ($usergradeclass_2 != '') && ($usergradeclass_3 == '') && ($usergradeclass_4 == ''))
$usergradeclass = $usergradeclass_2;
else if (($usergradeclass_1 == '') && ($usergradeclass_2 == '') && ($usergradeclass_3 != '') && ($usergradeclass_4 == ''))
$usergradeclass = $usergradeclass_3;
else if (($usergradeclass_1 == '') && ($usergradeclass_2 == '') && ($usergradeclass_3 == '') && ($usergradeclass_4 != ''))
$usergradeclass = $usergradeclass_4;
else
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['gradeclass_double'];
if (empty($usergradeclass))
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
代碼: 選擇全部
if ( $mode == 'register' )
{
$usergradeclass = '';
if (($usergradeclass_1 != '') && ($usergradeclass_2 = '') && ($usergradeclass_3 = '') && ($usergradeclass_4 = '') && ($usergradeclass_5 = ''))
$usergradeclass = $usergradeclass_1;
else if (($usergradeclass_1 = '') && ($usergradeclass_2 != '') && ($usergradeclass_3 = '') && ($usergradeclass_4 = '') && ($usergradeclass_5 = ''))
$usergradeclass = $usergradeclass_2;
else if (($usergradeclass_1 = '') && ($usergradeclass_2 = '') && ($usergradeclass_3 != '') && ($usergradeclass_4 = '') && ($usergradeclass_5 = ''))
$usergradeclass = $usergradeclass_3;
else if (($usergradeclass_1 = '') && ($usergradeclass_2 = '') && ($usergradeclass_3 = '') && ($usergradeclass_4 != '') && ($usergradeclass_5 = ''))
$usergradeclass = $usergradeclass_4;
else if (($usergradeclass_1 = '') && ($usergradeclass_2 = '') && ($usergradeclass_3 = '') && ($usergradeclass_4 = '') && ($usergradeclass_5 != ''))
$usergradeclass = $usergradeclass_5;
else if (($usergradeclass_1 = '') && ($usergradeclass_2 = '') && ($usergradeclass_3 = '') && ($usergradeclass_4 = '') && ($usergradeclass_5 = ''))
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
else
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['gradeclass_double'];
}
代碼: 選擇全部
<!-- BEGIN switch_namechange_allowed -->
<tr>
<td class="row1" width="20%"><span class="gen">{L_USERGRADECLASS}: *</span><br />
<span class="gensmall">{L_USERGRADECLASS_EXPLAIN}</span></td>
<td class="row2">
常士<select class="post" style="width:100px" name="usergradeclass_1">
<option>
<option>常士85年班\r
<option>常士86年班\r
<option>常士87年班\r
<option>常士88年班\r
<option>常士89年班\r
<option>常士90年班\r
<option>常士91年班</select>
士二專<select class="post" style="width:100px" name="usergradeclass_2">
<option>
<option>士二專85年班\r
<option>士二專86年班\r
<option>士二專87年班\r
<option>士二專88年班\r
<option>士二專89年班\r
<option>士二專90年甲班\r
<option>士二專90年乙班\r
<option>士二專91年班\r
<option>士二專92年班</select>
專科<select class="post" style="width:100px" name="usergradeclass_3">
<option>
<option>專科85年班\r
<option>專科86年班\r
<option>專科87年班\r
<option>專科88年班\r
<option>專科89年班\r
<option>專科90年甲班\r
<option>專科90年乙班\r
<option>專科91年班\r
<option>專科92年班</select>
二技<select class="post" style="width:100px" name="usergradeclass_4">
<option>
<option>二技93年班\r
<option>二技94年班\r
<option>二技95年班\r
<option>二技96年班\r
<option>二技97年班</select>
自填<input type="text" class="post" style="width:100px" name="usergradeclass_5" size="25" maxlength="25" value="{USERGRADECLASS_5}" /></td>
</tr>
<!-- END switch_namechange_allowed -->
代碼: 選擇全部
if ( $mode == 'register' )
{
$usergradeclass == $usergradeclass_1;
}
代碼: 選擇全部
if (($usergradeclass_1 != '') && ($usergradeclass_2 == '') && ($usergradeclass_3 == '') && ($usergradeclass_4 == '') )
代碼: 選擇全部
$usergradeclass_1 = $HTTP_POST_VARS['usergradeclass_1']
$usergradeclass_2 = $HTTP_POST_VARS['usergradeclass_2']
$usergradeclass_3 = $HTTP_POST_VARS['usergradeclass_3']
$usergradeclass_4 = $HTTP_POST_VARS['usergradeclass_4']
if ($HTTP_POST_VARS['usergradeclass_5'] != null)
$usergradeclass_5 = "'" + $HTTP_POST_VARS['usergradeclass_5'] + "'";
代碼: 選擇全部
if ($HTTP_POST_VARS['usergradeclass_5'] != null)
$usergradeclass_5 = "'" + $HTTP_POST_VARS['usergradeclass_5'] + "'";
代碼: 選擇全部
else if (($usergradeclass_1 == null) && ($usergradeclass_2 == null) && ($usergradeclass_3 == null) && ($usergradeclass_4 == null) && ($usergradeclass_5 = null))
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
代碼: 選擇全部
if ($HTTP_POST_VARS['usergradeclass_5'] != null)
$usergradeclass_5 = "'" + $HTTP_POST_VARS['usergradeclass_5'] + "'";
代碼: 選擇全部
else if (($usergradeclass_1 == null) && ($usergradeclass_2 == null) && ($usergradeclass_3 == null) && ($usergradeclass_4 == null) && ($usergradeclass_5 = null))
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
代碼: 選擇全部
else if (($usergradeclass_1 == null) && ($usergradeclass_2 == null) && ($usergradeclass_3 == null) && ($usergradeclass_4 == null) && ($usergradeclass_5 == null))
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}