Skip to content

Commit bd0f692

Browse files
authored
Merge pull request #12 from ut-code/fix-form-operator2
フォームの一部文章を追加②
2 parents 62f17fa + 15cae68 commit bd0f692

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/3-golden-week/06-form/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ import OpenInCodeSandbox from "@site/src/components/OpenInCodeSandbox";
1515
例:google.comで、検索エンジンに何か入力して、検索すると、検索結果が表示されるが、そのページのURLに注目。(下画像赤線がクエリパラメータ)
1616

1717
## サーバーにデータを送信する
18+
form要素を使うとユーザーの入力からクエリパラメータを生成してページ遷移できる。
19+
20+
・ formのaction属性: フォーム送信時に移動し、データを送信するページ
21+
・input要素: テキストボックス
22+
・inputのname属性: クエリパラメータのキー
23+
・button要素: form内のボタンをクリックするとformのactionに指定したページに遷移する(送信ボタンになる)

0 commit comments

Comments
 (0)