phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
-
Hsuing
- 星球普通子民
- 文章: 26
- 註冊時間: 2004-12-15 20:53
文章
由 Hsuing »
將
代碼: 選擇全部
if ($HTTP_POST_VARS['usergradeclass_5'] != null)
$usergradeclass_5 = "'" . $HTTP_POST_VARS['usergradeclass_5'] . "'";
改為\r
代碼: 選擇全部
$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'];
還是沒有作用
-
Hsuing
- 星球普通子民
- 文章: 26
- 註冊時間: 2004-12-15 20:53
文章
由 Hsuing »
將程式碼改為之前的
代碼: 選擇全部
if ( $mode == 'register' )
{
$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'] ;
$usergradeclass_5 = $HTTP_POST_VARS['usergradeclass_5'] ;
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['gradeclass_double'];
}
else if ( $usergradeclass_2 != null && ( $usergradeclass_3 != null || $usergradeclass_4 != null || $usergradeclass_5 != null ))
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['gradeclass_double'];
}
else if ( $usergradeclass_3 != null && ( $usergradeclass_4 != null || $usergradeclass_5 != null ))
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['gradeclass_double'];
}
else if ( $usergradeclass_4 != null && $usergradeclass_5 != null)
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['gradeclass_double'];
}
if (!$error)
{
if ( $usergradeclass_1 != null )
{
$usergradeclass = $usergradeclass_1;
}
else if ( $usergradeclass_2 != null )
{
$usergradeclass = $usergradeclass_2;
}
else if ( $usergradeclass_3 != null )
{
$usergradeclass = $usergradeclass_3;
}
else if ( $usergradeclass_4 != null )
{
$usergradeclass = $usergradeclass_4;
}
else if ( $usergradeclass_5 != null )
{
$usergradeclass = $usergradeclass_5;
}
}
if ( empty($usergradeclass) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
選單.重覆選擇.空白的判斷一切正常
感謝baboo兄 這幾天以來陪小弟偵錯 並 幫忙修改code
感激不盡~~~~~~~~
-
baboo
- 星球公民
- 文章: 79
- 註冊時間: 2004-02-11 10:23
文章
由 baboo »
不用謝了啦~ 反正好玩嘍~~