diff --git a/docs/3-golden-week/06-form/index.md b/docs/3-golden-week/06-form/index.md index 5f9738389..80ad843ce 100644 --- a/docs/3-golden-week/06-form/index.md +++ b/docs/3-golden-week/06-form/index.md @@ -15,3 +15,9 @@ import OpenInCodeSandbox from "@site/src/components/OpenInCodeSandbox"; 例:google.comで、検索エンジンに何か入力して、検索すると、検索結果が表示されるが、そのページのURLに注目。(下画像赤線がクエリパラメータ) ## サーバーにデータを送信する +form要素を使うとユーザーの入力からクエリパラメータを生成してページ遷移できる。 + +・ formのaction属性: フォーム送信時に移動し、データを送信するページ +・input要素: テキストボックス +・inputのname属性: クエリパラメータのキー +・button要素: form内のボタンをクリックするとformのactionに指定したページに遷移する(送信ボタンになる) \ No newline at end of file