# Need some help with basic form submissions

**URL:** <https://forum.elixirforum.com/t/need-some-help-with-basic-form-submissions/54537>\
**Category:** Questions\
**Tags:** forms, phoenix, rest\
**Created:** [March 13, 2023, 1:36pm UTC](https://forum.elixirforum.com/t/need-some-help-with-basic-form-submissions/54537 "2023-03-13T13:36:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![codeanpeace](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/codeanpeace/32/10278_2.png) [@codeanpeace](https://forum.elixirforum.com/u/codeanpeace)\
**Post date:** [March 13, 2023, 11:07pm UTC](https://forum.elixirforum.com/t/need-some-help-with-basic-form-submissions/54537/2 "2023-03-13T23:07:07Z")

</div>

> GET /users/new HelloWeb.UserController :new  
> …  
> POST /users HelloWeb.UserController :create  
> …  
> source: [Routing — Phoenix v1.8.8](https://hexdocs.pm/phoenix/routing.html#resources)

The `:new` route is to get the blank form, hence the `GET` HTTP request. While the `:create` route is to submit/post the completed form, hence the `POST` HTTP request.

If you’re on a relatively new version of Phoenix and ran `mix phx.gen.html ...`, you’d see a [form component](https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#form/1-example-outside-liveview-regular-http-requests) with an action that points to a `:create` route.

```elixir
<.form :let={f} for={@changeset} action={Routes.comment_path(:create, @comment)}> # or action={~p"/comments"} if using verified routes
  <.input field={f[:body]} />
</.form>

```

---

_[View the full topic](https://forum.elixirforum.com/t/need-some-help-with-basic-form-submissions/54537)._
