drupal-6


drupal 6 forms type = select multiple = true… what is the returned value?


There doesn't seem to be any details about this in the forms api. So please forgive my question, but I need to know what is being returned when i submit values from a form field where I can select multiple values. I suspect it is an array, if so, how is it structured? Thanks.
Here is a dump of the value field from the $form_state variable after submission for a form that contains 2 multiple select lists. *Countries and Currencies. As you can see, you are correct, an array of values corresponding to the selected option values is returned for each of the 2 lists:
[values] => Array
(
[name] => PayPal
[ppid] => 17
[countries] => Array
(
[236] => 236
[237] => 237
)
[currencies] => Array
(
[USD] => USD
[EUR] => EUR
[CAD] => CAD
)
[submit] => Submit Details
[form_build_id] => form-d675700e434f656b0e1c7ac4aa91a210
[form_token] => 3405b88547c068a0f6a2742670b2149a
[form_id] => add_payment_method_form
[op] => Submit Details
)

Related Links

Redirecting or rewriting drupal links
Drupal 6: in hook_cron, how do I specify the path to a module file?
I Need Help Modifying CKEditor's Default Image Property Paths
Drupal 6 Faceted Search
How to send HTML email in drupal 6 using drupal_mail?
How to display some results from an external database in a drupal node?
need to pipe between menu items in drupal (non-css)
Drupal multisite setup
transferring drupal site from localhost to live server
drupal 6 : node.tpl.php $links variable, where to configure the content?
Drupal: Create menu item for a view
How to render block programmatically with standard theme
Login to drupal
Apache Solr search index problem
drupal database backup [closed]
Drupal url alias and views and clear urls for taxonomy issues

Categories

HOME
testng
openstack
google-api-php-client
view
stock
fft
iot
jsp-tags
at-command
razor
survey
fsm
icloud
serverspec
acquia
facebook-php-sdk
communication
tomcat6
izpack
usergrid
phaser
decimal
fatal-error
footer
swingx
reverse-proxy
object-detection
jasonette
facebook-instant-articles
crosstab
xpages-ssjs
bootstrap-material-design
fifo
elasticsearch-net
opentype
large-file-upload
atlassian-crucible
unboundid
skia
socialengine
nameservers
google-qpx-express-api
fog
picasso
bower-install
jmonkeyengine
http-digest
file-format
serve
xcode-extension
hot-module-replacement
code-search-engine
reportbuilder
ws-security
eclipse-scout
elmah
xml-documentation
strptime
qsslsocket
python-c-api
celery-task
integrity
snmptrapd
flow-control
vtigercrm
sts-springsourcetoolsuite
url-masking
asp.net-4.5
pcf
impresspages
lua-5.1
ready-api
bluegiga
ptrace
uid
jfugue
unity-networking
vhd
qdialog
simple-framework
pundit
dukescript
php-ci
sniffer
sortedlist
e10s
jsapi
sorl-thumbnail
typekit
tablelayout
id3v2
websocket4net
expected-exception
google-cloud-save
odata4j
jplaton
qt-faststart
eventlistener
rdoc
coderush
runas
newtonscript
work-stealing
transactionscope
gwt-ext
xmemcached
appendto
inotifycollectionchanged
mysql-error-1005
lang
sproutcore-2
gin
forums
sef
virtual-functions
mediarss
.net-1.0
commodore

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App