make submit form not require JS.

This commit is contained in:
Jason Schwarzenberger
2020-12-04 16:16:05 +13:00
parent 33a25fa34e
commit 6459d07ce5
9 changed files with 30 additions and 14 deletions
+6 -2
View File
@@ -127,7 +127,11 @@
width="200"
height="200" />
<form on:submit|preventDefault={handleSubmit} autocomplete="off">
<form
action="submit.json"
method="POST"
on:submit|preventDefault={handleSubmit}
autocomplete="off">
<input
type="text"
name="url"
@@ -136,7 +140,7 @@
value=""
bind:this={input}
required />
<button type="submit">Go</button>
<button value="true" name="redirect" type="submit">Go</button>
</form>
<p class="error">Something went wrong.</p>