Skip to content

formaction is missing #456

Open
Open
@cognominal

Description

@cognominal

In svelteflix, there is a form with buttons that have a formaction attribute. Such an example should be added in the tutorial
https://github.com/Rich-Harris/svelteflix/blob/69ef00c20730d393a833fe8f6bad60944a1f02eb/src/routes/login/%2Bpage.svelte#L8

       <form method="POST">
		<label>
			email
			<input type="email" name="email" required />
		</label>

		<label>
			password
			<input type="password" name="password" required />
		</label>

		<div class="buttons">
			<button formaction="?/login&redirect_to={data.redirect_to}" type="submit">login</button>
			<button formaction="?/register&redirect_to={data.redirect_to}" type="submit">register</button>
		</div>
	</form>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions