diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-07-20 12:21:30 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-07-20 12:21:30 -0400 |
commit | 26a8eaaa3429aea2e455d18ff9a0f6c661d90cef (patch) | |
tree | d6b95ce4db9a809fbe365dfc157c8663c4b57b90 /tests | |
parent | 035e55c6c3d7d79a73f98e7d4c6a0e5e760c8cc8 (diff) |
Form submission type-checking
Diffstat (limited to 'tests')
-rw-r--r-- | tests/form.lac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/form.lac b/tests/form.lac index 790dea2a..a046928a 100644 --- a/tests/form.lac +++ b/tests/form.lac @@ -1,6 +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/> - Color: <textbox{#Color} /><br/> + Word: <textbox{#Word} /><br/> + + <submit action={handler}/> </lform> </body></html> |