comparison tests/form.lac @ 142:6f9e224692ec

Form submission type-checking
author Adam Chlipala <adamc@hcoop.net>
date Sun, 20 Jul 2008 12:21:30 -0400
parents 63c699450281
children
comparison
equal deleted inserted replaced
141:63c699450281 142:6f9e224692ec
1 val handler = fn r => <html><body>
2 <li> Name: {cdata r.Nam}</li>
3 <li> Word: {cdata r.Word}</li>
4 </body></html>
5
1 val main : unit -> page = fn () => <html><body> 6 val main : unit -> page = fn () => <html><body>
2 <lform> 7 <lform>
3 Name: <textbox{#Nam} /><br/> 8 Name: <textbox{#Nam} /><br/>
4 Color: <textbox{#Color} /><br/> 9 Word: <textbox{#Word} /><br/>
10
11 <submit action={handler}/>
5 </lform> 12 </lform>
6 </body></html> 13 </body></html>