[hunchentoot-devel] multiple POST/GET values
Andrea Chiumenti
kiuma72 at gmail.com
Mon Jul 21 21:00:23 UTC 2008
Hi,
see defmethods
page-req-parameter
and
page-request-parameters
here
http://common-lisp.net/websvn/filedetails.php?repname=claw&path=%2Ftrunk%2Fmain%2Fclaw-core%2Fsrc%2Ftags.lisp&rev=0&sc=0
ps.
(claw-post-parameters) (claw-get-parameters) are the same of
(post-parameters) (get-parameters).
cheers
kiuma
On Mon, Jul 21, 2008 at 7:17 PM, Jaap de Heer <jaap at streamtech.nl> wrote:
> On Mon, Jul 21, 2008 at 03:04:14PM -0400, Zach Beane wrote:
>> > Hunchentoot will pick up on only one of them, i.e.
>> > (get-post-parameter "foo-or-bar") will be either "foo" or
>> > "bar" but not both; it should be both.
>>
>> I disagree (though I'm not sure exactly what you mean by
>> GET-POST-PARAMETER, which isn't a part of Hunchentoot I've ever
>> seen). If you need multiple parameter values for a given name, you can
>> pick them out of the POST-PARAMETERS alist easily enough:
>>
>> (defun post-parameters (name)
>> (let ((alist (tbnl:post-parameters)))
>> (loop for ((key . value)) on alist
>> when (string= key name) collect value)))
>
> Woops, I meant (post-parameter) of course.
> But yes, that makes more sense.
>
> Thanks,
>
> Jaap
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
More information about the Tbnl-devel
mailing list