-
If I have (defun on-page1 (body)
(create-div body :content "You are in on-page1")
(run body))
(set-on-new-window #'on-page1 :path "/page1") and I want to process something like "/page1?id=3" (or "/page1/3"). How would I extract the id parameter for a value of 3? |
Beta Was this translation helpful? Give feedback.
Answered by
alanz
Feb 28, 2021
Replies: 1 comment 2 replies
-
And to answer my own question, (defun on-page1 (body)
(let ((params (form-get-data body)))
(log-console (window body) "A message in the browser's log")
(create-div body :content params)
(create-div body :content (format nil "yourname = ~A"
params)))
(run body)) does the job |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
rabbibotton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And to answer my own question,
does the job