html
1<html> 2<head> 3</head> 4<body> 5<form action="http://example.com" method="get"> 6<input type="text" name="text1"><br> 7<input type="image" name="a" src="30.png"><br> 8</body> 9</html> 10
上記のようなhtmlをブラウザで開き、例えばテキスト欄に"aaa"と書いてから、imageをクリックしてGET送信すると、以下のようなURLになります。
(送信先はわざと実在しない場所にしています)
http://example.com/?text1=aaa&a.x=37&a.y=8
http://example.com/?text1=aaa&a.x=41&a.y=11
http://example.com/?text1=aaa&a.x=42&a.y=11
a.x, a.yの値は毎回変わります。
一体このa.x, a.yは何なのでしょうか?
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー