# Interface SubmitFunction

Submits a HTML `<form>` to the server without reloading the page.

interface SubmitFunction ((target, options?) => void)

- SubmitFunction(target, options?): void

- #### Parameters

  - target: SubmitTarget

    Specifies the `<form>` to be submitted to the server, a specific `<button>` or `<input type="submit">` to use to submit the form, or some arbitrary data to submit.

    Note: When using a `<button>` its `name` and `value` will also be included in the form data that is submitted.

  - `Optional` options: SubmitOptions

    Options that override the `<form>`'s own attributes. Required when submitting arbitrary data without a backing `<form>`.

  #### Returns void

  - Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/index.d.ts:225