From c0c11ad937bfe9eee11b6c9abe3d07ec26e4478d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E2=80=A2=C3=98=E2=80=A2R=E2=80=A2=C3=9C=E2=80=A2S?= Date: Tue, 15 Feb 2022 00:21:27 +0400 Subject: [PATCH] Few touch-ups to the docs on web forms in Next (#34286) ## Beyond the minor changes... - Added a warning that back-end validation is more secure - Fixed a RegEx that I'm damn-near sure is wrong. - Returned status codes in the first back-end serverless example - Added a link the user can click on to learn what a HTTP method is ## Changes that must be reviewed: - Does the `script` tag need explanation? I think all that needs to be said is that you can indeed use it in Next.JS, without much trouble. ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint` Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com> --- docs/guides/building-forms.md | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/docs/guides/building-forms.md b/docs/guides/building-forms.md index c2b163d4fac1e..1a9ac3791a6cc 100644 --- a/docs/guides/building-forms.md +++ b/docs/guides/building-forms.md @@ -33,10 +33,10 @@ The front-end looks like this: The HTML `
` tag acts as a container for different `` elements like `text` field and submit `button`. Let's study each of these elements: - `action`: An attribute that specifies where the form data is sent when the form is submitted. It's generally a URL (an absolute URL or a relative URL). -- `method`: Specifies the HTTP method, i.e., `GET` or `POST` used to send data while submitting the form. -- `