summaryrefslogtreecommitdiff
path: root/tests/form.lac
diff options
context:
space:
mode:
Diffstat (limited to 'tests/form.lac')
-rw-r--r--tests/form.lac9
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>