HTML/form
Last-modified: 2018-11-14 (¿å) 15:23:53 (2214d)
getÃͳÎǧÍÑphp¥×¥í¥°¥é¥à
get.php
<html> <head> <title>GETÃÍɽ¼¨</title> </head> <body> <?php foreach ($_GET as $name => $value) { print($name . ": " . $value . "<br />"); } ?> </body> </html>
¢¨UTF-8¤ÇÊݸ¤·¤Æ¡¢PHP¤¬Æ°ºî¤¹¤ë¥µ¡¼¥Ð¤ËÇÛÃÖ¤·¤Þ¤¹¡£
¢¨Ê¸»ú²½¤±¤¹¤ë¤È¤¤Ïmeta¥¿¥°¤Çʸ»ú¥³¡¼¥É¤ò»ØÄꤷ¤Þ¤¹¡£
¥é¥¸¥ª¥Ü¥¿¥ó¤ò²¡¤·¤¿¤È¤¤ËÁ÷¿®¤¹¤ëÊýË¡
radio.html
<html> <head> <title>¥é¥¸¥ª¥Ü¥¿¥ó¤Ë¤è¤ëÁ÷¿®</title> </head> <body> <form action="get.php" method="get"> <input type="radio" name="page" value="1" onclick="submit();">ÁªÂò»è1 <input type="radio" name="page" value="2" onclick="submit();">ÁªÂò»è2 <input type="radio" name="page" value="3" onclick="submit();">ÁªÂò»è3 </form> </body> </html>
¢¨UTF-8¤ÇÊݸ¤·¤Æ¥µ¡¼¥Ð¤ËÇÛÃÖ¤·¤Þ¤¹¡£
¢¨Ê¸»ú²½¤±¤¹¤ë¤È¤¤Ïmeta¥¿¥°¤Çʸ»ú¥³¡¼¥É¤ò»ØÄꤷ¤Þ¤¹¡£
¢¨Àè¤Û¤É¤Îget.php¤È°ì½ï¤Ë¥µ¡¼¥Ð¤ËÇÛÃÖ¤¹¤ë¤È¥Æ¥¹¥È¤Ç¤¤Þ¤¹¡£