diff options
Diffstat (limited to 'tests/form.ur')
-rw-r--r-- | tests/form.ur | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/form.ur b/tests/form.ur new file mode 100644 index 00000000..a046928a --- /dev/null +++ b/tests/form.ur @@ -0,0 +1,13 @@ +val handler = fn r => <html><body> + <li> Name: {cdata r.Nam}</li> + <li> Word: {cdata r.Word}</li> +</body></html> + +val main : unit -> page = fn () => <html><body> + <lform> + Name: <textbox{#Nam} /><br/> + Word: <textbox{#Word} /><br/> + + <submit action={handler}/> + </lform> +</body></html> |