| So I'm having a little trouble. Here's the code: (defop test req
(pr (arg req "parm"))
(br)
(if (is (arg req "parm") nil)
(= url "test")
(= url (string "test?parm=" (arg req "parm"))))
(do-it url)
)
(def do-it (url)
(form url (textarea "stuff" 10 50)
(br)(submit))
)
So when I run: http://localhost:8080/test?parm=324342
It prints 324342, then runs "do-it" creating the textarea.... which I expect. Upon entering text, clicking submit it re-directs to the correct url, but no longer prints 324342, but rather "nil"....Any idea on what I am doing wrong? Thanks,
T. |