01.
<!DOCTYPE html>
02.
<html>
03.
<head>
04.
<meta charset=
"UTF-8"
>
05.
</head>
06.
<body>
07.
08.
<form>
09.
学籍番号 <input type=
"text"
name=
"r101"
>
10.
<input type=
"submit"
name=
"send"
value=
"送信"
>
11.
</form>
12.
13.
<pre>
14.
<?php
15.
16.
print_r(
$_GET
);
17.
18.
?>
19.
</pre>
20.
21.
</body>
22.
</html>
1) ブラウザ : send(送信) をクリック 2) ブラウザ => サーバ : 入力値とボタンの文字列を送る 3) PHP : $_GET で受け取る 4) PHP : HTML の中に $_GET を埋め込んでブラウザに返す ★次> こんにちは世界-2.php![]()