I've been through the documentation for web-servers and can't find anything on it.
Here's my code for a basic web application:
#lang racket
(require web-server/servlet
web-server/servlet-env)
(define test '())
(define (start request)
(define bindings (request-bindings request))
(cond
((exists-binding? `cb1 bindings)
(set! test '(1 2 3))
(printf "~a" "(test) has been set to '(1 2 3)!")))
(response/xexpr
`(html
(head (title "My Blog"))
(body
(h1 "Under construction")
(form ,`(input ((name "cb1") (type "checkbox")) (value " Checkbox 1"))
(p (input ((type "submit") (value "Submit")))))))))
(serve/servlet start)
I want to be able to submit without having to press submit and instead by pressing a key such as enter. Is it possible to do this?