Open
Description
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>