[pmwiki-users] using arrays in input markup

Petko Yotov 5ko at 5ko.fr
Thu May 14 07:08:54 CDT 2015

Sorry, elements named like "color[]" are not supported and processed by 
PmWiki or PmForm, and (:input default request=1:) or (:input default 
color[] red,blue:) will not work for such elements.

For custom needs you can create forms with such elements, but you have 
to write your own functions to process them:

(:input form:)
(:input hidden action your-custom-handler:)
(:input end:)


On 2015-05-14 12:02, Peter Bowers wrote:
> I am wanting to use arrays in input markup like this:
> ===(snip)===
> (:input form method=get:)
> (:input default request=1:)
> Colors: (:input checkbox color[] value="red":) Red (:input checkbox 
> color[]
> value="blue":) Blue (:input checkbox color[] value="green":) Green
> (:input submit:)
> (:input end:)
> ===(snip)===
> (Note the "color[]" as the name of the field - I'm not sure if that's
> technically an "array" in HTML, but that's what I'm referring to.)
> As soon as I try to submit the value I get PHP errors from pmwiki.php
> and/or forms.php.
> I thought I had seen discussion of this capability on the mailing list 
> in
> the past, but I cannot find it despite searching for quite some time.
> Is this capability supported in pmwiki? If so, what do I need to do?

More information about the pmwiki-users mailing list