cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
multiselect box adding strange [] to custom ID
When a form is generated it's adding square brackets to the end of the 'name' attribute of a multiselect select element.
August 14, 2012
8:09 pm
Robert Simpson

Hi Oliver,

I'm using the form to submit new subscribers to a newsletter service and it's failing because for some reason cforms is adding extra square brackets to the name attribute of the element.


Contact Method[id:fe-vdekyf]#Email|3103951|set:true#Telephone|3103952

is producing this - <select multiple="multiple" name="fe-vdekyf[]" id="fe-vdekyf" class="cfselectmulti  fldrequired">

Any ideas?



August 25, 2012
11:07 am
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

The square brackets makes it an array, after all you've selected the multi-select box (which could send more than one value).

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3760

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5358

Posts: 18738

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)