戻る      query.php     

《PHP言語 /query.php》

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>クエリ情報を取得する</title>
</head>

<body>
<a href="http://shin-sapporo.com/php/day01.html">戻る</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="day01-2.html">ソースファイル</a><hr />

<?php
switch($_GET['category']){
case "PHP" :
$result="関数主体の手軽に使えるサーバサイド技術です。";
break;
case "JSP" :
$result="Javaベースの高機能なサーバサイド技術です。";
break;
case "ASP" :
$result="Windowsの代表的なサーバサイド技術です。";
break;
default :
$result="クエリ情報categoryを指定してください。";
}
print($result);
?>
</body>
</html>