読者です 読者をやめる 読者になる 読者になる

purazumakoiの[はてなブログ]

技術メモから最近はライフログも増えてきてます。

都道府県選択リストを作る

PEARで都道府県SELECTを出す時用のメモ

<?php
// 都道府県
	$group_data['address1'] = array();
	$group_data['address1'][''] = '';
	$group_data['address1']['1'] = "北海道";
	$group_data['address1']['2'] = "青森県";
	$group_data['address1']['3'] = "岩手県";
	$group_data['address1']['4'] = "宮城県";
	$group_data['address1']['5'] = "秋田県";
	$group_data['address1']['6'] = "山形県";
	$group_data['address1']['7'] = "福島県";
	$group_data['address1']['8'] = "茨城県";
	$group_data['address1']['9'] = "栃木県";
	$group_data['address1']['10'] = "群馬県";
	$group_data['address1']['11'] = "埼玉県";
	$group_data['address1']['12'] = "千葉県";
	$group_data['address1']['13'] = "東京都";
	$group_data['address1']['14'] = "神奈川県";
	$group_data['address1']['15'] = "新潟県";
	$group_data['address1']['16'] = "富山県";
	$group_data['address1']['17'] = "石川県";
	$group_data['address1']['18'] = "福井県";
	$group_data['address1']['19'] = "山梨県";
	$group_data['address1']['20'] = "長野県";
	$group_data['address1']['21'] = "岐阜県";
	$group_data['address1']['22'] = "静岡県";
	$group_data['address1']['23'] = "愛知県";
	$group_data['address1']['24'] = "三重県";
	$group_data['address1']['25'] = "滋賀県";
	$group_data['address1']['26'] = "京都府";
	$group_data['address1']['27'] = "大阪府";
	$group_data['address1']['28'] = "兵庫県";
	$group_data['address1']['29'] = "奈良県";
	$group_data['address1']['30'] = "和歌山県";
	$group_data['address1']['31'] = "鳥取県";
	$group_data['address1']['32'] = "島根県";
	$group_data['address1']['33'] = "岡山県";
	$group_data['address1']['34'] = "広島県";
	$group_data['address1']['35'] = "山口県";
	$group_data['address1']['36'] = "徳島県";
	$group_data['address1']['37'] = "香川県";
	$group_data['address1']['38'] = "愛媛県";
	$group_data['address1']['39'] = "高知県";
	$group_data['address1']['40'] = "福岡県";
	$group_data['address1']['41'] = "佐賀県";
	$group_data['address1']['42'] = "長崎県";
	$group_data['address1']['43'] = "熊本県";
	$group_data['address1']['44'] = "大分県";
	$group_data['address1']['45'] = "宮崎県";
	$group_data['address1']['46'] = "鹿児島県";
	$group_data['address1']['47'] = "沖縄県";
?>