[PHP-users 12293] Re: ¥Õ¥¡¥¤¥ë̾¿èåîîó¤Â¤Î¤è¤¦¤Ê¤â¤Î¤ÎÂåÆþ¤Î

shogo php-users@php.gr.jp
Sun, 22 Dec 2002 17:44:15 +0900


²ÏÀ¥¤Ç¤¹¡£

º£²ó¤Î¤è¤¦¤Ë
	hogehoge.php?abc
¤È¤·¤Æ¸Æ¤Ó½Ð¤·¤¿¤¤¾ì¹ç¤Ï

fumiyaKitamura ¤µ¤ó¤Ï½ñ¤­¤Þ¤·¤¿:
>--¥×¥í¥°¥é¥à
><?php
>if($_GET['page'] == 'abc'){
>	echo 'abc';
>}else{
>	echo 'else';
>}
>?>

¤È¤¹¤ë¤è¤ê¤Ï

	switch ($_SERVER['QUERY_STRING']) {
	    case 'abc':
	        echo 'query is abc.';
	        break;
	    default:
	        echo 'not defined query.';
	        break;
	}

¤Î¤è¤¦¤Ë¤¹¤ë¤Î¤¬¤è¤¤¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡©

¡Ê¤Þ¤¡¡¢Â¾¤Î°ú¿ô¤òÍ¿¤¨¤¿»þÅÀ¤Ç»È¤¨¤Ê¤¯¤Ê¤ê¤Þ¤¹¤¬¡£

»²¹Í¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£