OokerO
Denoβ€’3y agoβ€’
25 replies
Ooker

How does form submission work?

I'm following the tutorial: https://fresh.deno.dev/docs/getting-started/form-submissions

It says:
When the user submits the form, the browser will navigate to /search with the query set as the q query parameter in the URL. The GET handler will then filter the names array based on the query, and pass it to the page component for rendering.
Robustly handle user inputs using HTML `` elements client side, and form
submission handlers server side.
Form submissions | Fresh docs
Was this page helpful?