blob: 427b5e0fe561f8ea263cb38676119a6ff116a4fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
table dates : { Date : time }
fun aform () =
let
val a : time = readError "01/02/03 04:06:07"
in
dml(INSERT INTO dates (Date) VALUES ({[a]}));
ds <- queryX (SELECT * FROM dates)
(fn r => <xml>{[r.Dates.Date]}<br/></xml>);
return <xml><body>{ds}</body></xml>
end
fun main () =
return <xml><body><form><submit action={aform}/></form></body></xml>
|