|
 |
|
อยากได้โค้ด listbox จังหวัดในประเทศไทยค่ะ -รบกวน แนะนำ code listbox จังหวัดในประเทศไทยหน่อยค่ะ ^^ |
|
 |
|
|
 |
 |
|
ข้อ 1 แบบนี้ป่าว
Code (PHP)
<?
$arr_province =array("กระบี่","กรุงเทพมหานคร","กาญจนบุรี","กาฬสินธุ์","กำแพงเพชร","ขอนแก่น","จันทบุรี","ฉะเชิงเทรา" ,"ชลบุรี","ชัยนาท","ชัยภูมิ","ชุมพร","เชียงราย","เชียงใหม่","ตรัง","ตราด","ตาก","นครนายก","นครปฐม","นครพนม","นครราชสีมา" ,"นครศรีธรรมราช","นครสวรรค์","นนทบุรี","นราธิวาส","น่าน","บุรีรัมย์","ปทุมธานี","ประจวบคีรีขันธ์","ปราจีนบุรี","ปัตตานี" ,"พะเยา","พังงา","พัทลุง","พิจิตร","พิษณุโลก","เพชรบุรี","เพชรบูรณ์","แพร่","ภูเก็ต","มหาสารคาม","มุกดาหาร","แม่ฮ่องสอน" ,"ยโสธร","ยะลา","ร้อยเอ็ด","ระนอง","ระยอง","ราชบุรี","ลพบุรี","ลำปาง","ลำพูน","เลย","ศรีสะเกษ","สกลนคร","สงขลา" ,"สตูล","สมุทรปราการ","สมุทรสงคราม","สมุทรสาคร","สระแก้ว","สระบุรี","สิงห์บุรี","สุโขทัย","สุพรรณบุรี","สุราษฎร์ธานี" ,"สุรินทร์","หนองคาย","หนองบัวลำภู","อยุธยา","อ่างทอง","อำนาจเจริญ","อุดรธานี","อุตรดิตถ์","อุทัยธานี","อุบลราชธานี");
?>
<select name= "province_member">
<option value=""> - เลือกจังหวัด -</option>
<? for($ap=0; $ap<count($arr_province); $ap++){?>
<option value="<?=$arr_province[$ap]?>"><?=$arr_province[$ap]?></option>
<? } ?>
</select>
ข้อ 2 งง?
|
 |
 |
 |
 |
Date :
2010-07-18 09:19:25 |
By :
heng |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณทุกคนเรยนะคะ จะลองไปประยุกต์ดูค่ะ
|
 |
 |
 |
 |
Date :
2010-07-18 11:22:04 |
By :
noey |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|