5-6-6 ¤U©Ô¦¡¿ï³æ¡]Select¡^
¡@¼ÊºÙ: ¤p»x ¡@ÀY»Î: ´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
- ©«¤l
- 1190
- ¥DÃD
- 394
- ºëµØ
- 113
- ¿n¤À
- 1747
- ÂI¦W
- 1
- §@·~¨t²Î
- Vista
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 200
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2024-11-23
|
5-6-6 ¤U©Ô¦¡¿ï³æ¡]Select¡^
5-6-6 ¤U©Ô¦¡¿ï³æ¡]Select¡^
¤U©Ô¦¡¿ï³æ¡]Select¡^¤¸¥ó¨ã¦³³æ¿ï«ö¶sªº¥\¯à¡A¥ç¨ã¦³®Ö¨ú«ö¶sªº½Æ¿ï¥\¯à¡A¤U©Ô¦¡¿ï³æ¤¸¥ó¥Ñ¡u<Select></Select>¡v¼ÐÅÒ©Òºc¦¨¡A¨ä¬°¤@Ó¶°¦X¶µ¥Ø¤¸¥ó¡A¿ï³æ¤ºªº¨C¤@ӳƿﶵ¥Ø¥²¶·¦A¨Ï¥Î¡u<Option></Option>¡v¥]¬A°_¨Ó¡G- <Select name=¡¨ÃѧO¦W¡¨>
- <Option Value=¡¨¸ê®Æ¤@¡¨>¸ê®Æ¤@</Option>
- <Option Value=¡¨¸ê®Æ¤G¡¨>¸ê®Æ¤G</Option>
- ¡K
- </Select>
½Æ»s¥N½X Y¨S¦³¿ï©w¹w³]È¡A«h¿ï³æ¤ºªº²Ä¤@¶µ¸ê®Æ´N¦¨¬°¹w³]È¡AY±ýóª¨ä¥L¶µ¥Ø¬°¹w³]È¡A«h¥i¦b<Option>¼ÐÅÒ¤º¥[¤J¡uSelected¡vÄݩʳ]©w¡C
¹Ï5-30 ³æ¿ï¦¡¤U©Ô¿ï³æ¡C
select.php(¸`¿ý)- <form action="select_ans.php" method="Post">
- ½Ð¿ï¾Ü±z±Mªøªº¹q¸£»y¨¥:<Br>
- <Select name="language">
- <Option Value="VB">VB</Option>
- <Option Value="Delphi" Selected>Delphi</Option>
- <Option Value="C++">C++</Option>
- <Option Value="PHP">PHP</Option>
- <Option Value="Java">Java</Option>
- </Select>
- <input type="Submit">
- </form>
½Æ»s¥N½X |
|
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
|
|
|
|
|
¡@¼ÊºÙ: ¤p»x ¡@ÀY»Î: ´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
- ©«¤l
- 1190
- ¥DÃD
- 394
- ºëµØ
- 113
- ¿n¤À
- 1747
- ÂI¦W
- 1
- §@·~¨t²Î
- Vista
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 200
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2024-11-23
|
¥Ñ©ó¥Ø«e½d¨Ò¬°³æ¿ï¦¡ªº¤U©Ô¿ï³æ¡A©Ò¥HŪ¨úªºÄæ¦ì¨Ã¤£»Ýn¯S§O³B²z¡G
select_ans.php- <html><head>
- <title>¤U©Ô¦¡¿ï³æ¤¸¥ó¨Ï¥Î</title>
- </head><body>
- <?
- $mylanguage=$_REQUEST["language"];
- ?>
- ±zªº¿ï¾Ü:<?=$mylanguage?>
- </body></html>
½Æ»s¥N½X Yn±N¤U©Ô¦¡¿ï³æ³]¬°¦h¶µ¥Ø½Æ¿ï¡A¥i¦b<Select>¼ÐÅÒ¤¤¥[¤J¡umultiple¡vÄݩʳ]©w¡F¹w³]¤U©Ô¿ï³æ¥u·|¥X²{¤@Ó¸ê®Æ¶µ¥Ø¡]°ª«×¬°1¡^¡AnÅý¿ï³æ¤¤¥X²{¦hÓ¸ê®Æ¶µ¥Ø¥i³z¹L¡uSize¡vÄÝ©Ê¥[¥H³]©w¡A¦Ó¥B¤U©Ô¿ï³æ¤¸¥óªºÃѧO¦W¤]À³¸Ón§â¥¦§ï¦¨°}¦C§Î¦¡¡G
¹Ï5-31 ½Æ¿ï¦¡¤U©Ô¿ï³æ½d¨Ò¡C
select_2.php(¸`¿ý)- <form action="select_ans_2.php" method="Post">
- ½Ð¿ï¾Ü±z±Mªøªº¹q¸£»y¨¥:<Br>
- <Select name="language[]" multiple Size=5>
- <Option Value="VB">VB</Option>
- <Option Value="Delphi">Delphi</Option>
- <Option Value="C++">C++</Option>
- <Option Value="PHP">PHP</Option>
- <Option Value="Java">Java</Option>
- </Select>
- <input type="Submit">
- </form>
½Æ»s¥N½X |
|
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
|
|
|
|
|
¡@¼ÊºÙ: ¤p»x ¡@ÀY»Î: ´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
- ©«¤l
- 1190
- ¥DÃD
- 394
- ºëµØ
- 113
- ¿n¤À
- 1747
- ÂI¦W
- 1
- §@·~¨t²Î
- Vista
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 200
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2024-11-23
|
·í¦P®É¿ï¨ú¦hÓ¸ê®Æ¶µ¥Ø®É¡A¨CÓ¸ê®Æ¶µ¥Ø¦p¦P®Ö¨ú«ö¶s¤@¯ë¡G³£¬O°}¦C¤¸¯À¡A§ÚÌ¥i¥H§Q¥Îfor°j°é©Î¡ujoin()¡v¨ç¼Æ¡B¡uimplode()¡v¨ç¼Æ¨Ó¦CÁ|¶µ¥Ø¸ê®Æ¡G
¦b¤U¦C½d¨Ò¤¤¤À§O¨Ï¥Î¡ujoin()¡v¨ç¼Æ»P¡uimplode()¡v¨ç¼Æ¨Ó³B²z¸ê®Æ¡G
select_ans_2.php- <html><head>
- <title>¤U©Ô¦¡¿ï³æ¤¸¥ó¨Ï¥Î</title>
- </head><body>
- <?
- $mylanguage=$_REQUEST["language"];
- ?>
- ±zªº¿ï¾Ü(implode()¨ç¼Æ):<Br>
- <?
- echo implode(">>",$mylanguage);
- ?>
- <P>
- ±zªº¿ï¾Ü(join()¨ç¼Æ):<Br>
- <?
- echo join("-->",$mylanguage);
- ?>
- </body></html>
½Æ»s¥N½X
¹Ï5-32 ½Æ¿ï¦¡¤U©Ô¿ï³æ¸ê®Æ³B²z½d¨Ò¡C |
|
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
|
|
|
|
|