memo.xight.org


2003-09-08 Mon

input type="checkbox"

- ダメサンプル

<form method="GET" action="region.php">
	<input type="checkbox" name="region_code" value="01" />
	<input type="checkbox" name="region_code" value="02" />
	<input type="checkbox" name="region_code" value="03" />
</form>

- $region_code という配列に入って欲しいのに入らない.
  最後の値が上書きされる.

- 良いサンプル
<form method="GET" action="region.php">
	<input type="checkbox" name="region_code[]" value="01" />
	<input type="checkbox" name="region_code[]" value="02" />
	<input type="checkbox" name="region_code[]" value="03" />
</form>

- $region_code という配列に入ってくれる.
  name="hoge[]"
  がミソ
- Reference
  [PHP-jp 2755] Re: Form のCHECKBOXの値について
  http://www.nishimoto-site.net/archiver/ML/php-ML/199912/msg00134.html

カテゴリ: [PHP]

間にあわなそう

- `マニア罠層' と誤変換

カテゴリ: [ネタ]

真ファミコン小市民

- 真ファミコン小市民
  http://fcs.main.jp/
- 120%ヘラクレスの栄光
  http://fcs.main.jp/hercules/
- あの時…ヘラクレスは…
  開発中のヘラクレスの栄光はドラクエとかなり似ていたようだ.
  http://fcs.main.jp/hercules/hr_kaihatu01.html

カテゴリ: [Game]

続・山澤宅訪問

- 05:00 起床
  江ノ島経由で山澤を送る.
  間にあわなそうだったので,上大岡で山澤が下車.
  江ノ島江ノ島江ノ島

カテゴリ: [日記]
2003-09 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-02-20 21:23
Copyright © 2005 xight.org All Rights Reserved.