Mercurial > urweb
view tests/radio.ur @ 1978:c5143edaf3c7
Declare datetimeDayOfWeek in urweb_cpp.h.
author | Patrick Hurst <phurst@mit.edu> |
---|---|
date | Mon, 09 Dec 2013 20:41:24 -0500 |
parents | a1a1d66aebac |
children |
line wrap: on
line source
fun handler x = return <xml><body> You entered: {[case x.A of None => "nothing at all" | Some v => v]} </body></xml> fun main () = return <xml><body> <form> <radio{#A}> <li><radioOption value="A"/>A</li> <li><radioOption value="B"/>B</li> </radio> <submit action={handler}/> </form> </body></xml>