summaryrefslogtreecommitdiff
path: root/tests/html5_forms.ur
blob: 435e4ada1b555cc7a748387a5146986509d60045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fun handler r = return <xml><body>
  A: {[r.A]}<br/>
  B: {[r.B]}<br/>
  C: {[r.C]}<br/>
</body></xml>

fun main () =
    return <xml><body>
      <form>
        <textbox{#A} required placeholder="bobby"/>
        <textbox{#B} placeholder="soggy" autofocus/>
        <checkbox{#C}/>

        <submit action={handler}/>
      </form>
    </body></xml>