adamc@406: fun handler r = return <xml><body> adamc@406: <table> adamc@406: <tr> <th>A:</th> <td>{[r.A]}</td> </tr> adamc@406: <tr> <th>B:</th> <td>{[r.B]}</td> </tr> adamc@406: <tr> <th>C:</th> <td>{[r.C]}</td> </tr> adamc@406: </table> adamc@406: </body></xml> adamc@406: adamc@406: fun main () = return <xml><body> adamc@406: <form> adamc@406: <table> adamc@406: <tr> <th>A:</th> <td><textbox{#A}/></td> </tr> adamc@406: <tr> <th>B:</th> <td><textbox{#B}/></td> </tr> adamc@406: <tr> <th>C:</th> <td><checkbox{#C}/></td> </tr> adamc@406: <tr> <th/> <td><submit action={handler}/></td> </tr> adamc@406: </table> adamc@406: </form> adamc@406: </body></xml>