I never realized, that picolisp <post> has all batteries included to create a minimalistic form by itself.
This is why I can't keep my hands off picolisp: put following lines in a file form-app.l on machine with installed picolisp
(html 0 "Simple Post" *Css NIL
(<post> NIL *Url
(<label> NIL "set *Snippet to: ")
(<field> 30 '*Snippet)
(<submit> "Send")
)
(ht:Prin "display *Snippet: " *Snippet)
)
then run it from where the file exists with
pil @lib/http.l @lib/xhtml.l @lib/form.l --server 8079 form-app.l +
and one has immediately a running interactive page on localhost
Great!
Thanks for your Blog.
I never realized, that picolisp <post> has all batteries included to create a minimalistic form by itself.
This is why I can't keep my hands off picolisp: put following lines in a file form-app.l on machine with installed picolisp
(html 0 "Simple Post" *Css NIL (<post> NIL *Url (<label> NIL "set *Snippet to: ") (<field> 30 '*Snippet) (<submit> "Send") ) # end <post> # do sth with *Snippet (ht:Prin "display *Snippet: " *Snippet) # ... ) # end <html>then run it from where the file exists with
pil @lib/http.l @lib/xhtml.l @lib/form.l --server 8079 form-app.l +and one has immediately a running interactive page on
localhostGreat! Thanks for your Blog.