Web Application Programming in PicoLisp: Creating HTML Forms, Part 1
Today we will show how to create a simple HTML form in PicoLisp.
User Interaction in HTML
If a website purely works in HTML, the user interface can only be realized using <form> and <input> elements. The <form> tag accepts several attributes, of whi...
picolisp-explored.com6 min read
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.