[hunchentoot-devel] form array

Jens Teich info at jensteich.de
Wed Jul 16 20:17:28 UTC 2008


Maybe this is only a problem of my wrong handling of html forms.

I try to set up a group of checkboxes like this:

<form action='test.html'>
    <input type='checkbox' name='array[]'>
    <input type='checkbox' name='array[]'>
    <input type='checkbox' name='array[]'>
    ...

I try to get the user input into a Lisp array with an easy-handler but 
get only an empty array.

When clicking the submit button I see an URL like

   test.html?array%5B%5D=on...

where I expect

   test.html?array[0]=on...

If this is already my problem it has nothing to do with huchentoot, but 
I would appreciate any kind of help ...

Thanks
Jens




More information about the Tbnl-devel mailing list