俺が初心者にPHPを伝授するat PHP
俺が初心者にPHPを伝授する - 暇つぶし2ch760:nobodyさん
09/10/07 18:57:37
$count = 0;

if (isset($_POST['mati']) && $_POST['mati']) {
$count++;
} else {
$count--;
}
if (isset($_POST['eiga']) && $_POST['eiga']) {
$count++;
} else {
$count--;
}
if (isset($_POST['ame']) && $_POST['ame']) {
$count++;
} else {
$count--;
}

switch ($count) {
case -3:
case -2:
header("Location: zibun.html");
break;
case -1:
case 0:
header("Location: kensin.html");
break;
case 1:
case 2:
header("Location: roman.html");
break;
}


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch