I'm trying to build a field selector in newLISP. Right now I have the code:
Code: Select all
(define (multi-select-box inputlist)
(let (a "")
(extend a "<form action='multi-select-submit.cgi'")
(dolist (x inputlist)
(extend a "<input type='checkbox' name='input' value='" (string x) "'>" (string x) "<br>"))
(extend a "<input type='submit' value='Submit'>")
(extend a "</form>")
a))
http://localhost:8080/multi-select-subm ... ut=element
Now, from that URL I can probably extract the form values input=document and input=element. But I'm not sure how to get the current URL in the first place.
I am using newLISP and Dragonfly to serve the web pages.
Thanks for any help you can provide!