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

How to add additional SUBMIT handler when a FILE is uploaded on Drupal
How to display all taxonomy terms as tree view in block drupal 6?
Drupal 6 not loading page-user.tpl.php file
Not able to add fields to my content type in Drupal 6
How do i overwrite the default drupal6 block template?
how to add a sum field in a view?
How can Block direct access to drupal 6 site
how to clear varnish cache for a drupal view?
Drupal 6- 404 is not showing for menu item URL pattern implemented using hook_menu
hook the function in module in drupal
Conditional Field is not working with content_multigroup, cck , drupal
In drupal Primary Link is like empty
Programmatically creating nodes with audiofield in Drupal 6
Drupal: How do I pass profile tokens to user profile page?
CKeditor stopped working after drush up (6.22 -> 6.25)
Change markup field tekst during validation

Categories

HOME
cakephp
ibm-bluemix
urbancode
mfc
tinymce
setup-deployment
analysis
wamp
upload
facebook-php-sdk
gnupg
vifm
kentor-authservices
izpack
google-cloud-spanner
vaadin7
clojurescript
interop
graphicsmagick
css-animations
php-openssl
p-value
tdd
react-css-modules
virtualdub
bootstrap-material-design
rst2pdf
ping
replaceall
gitignore
tasklet
flink-streaming
preg-match
y86
main
event-driven
c11
opshub
graphenedb
isbn
reactive-cocoa-5
user-accounts
upstart
fancybox-2
idisposable
mplayer
sqlclient
lift-json
spring-cache
cubes
android-textview
log4c
phishing
login-control
transmitfile
storekit
contact-list
multiple-regression
metaclass
atk4
dukescript
key-management
c++03
npapi
kineticjs
operator-precedence
mdt
typeof
uitouch
navigationservice
wp-query
undefined-reference
picturefill
android-2.2-froyo
typo3-neos
centos5
tidy
opcache
hungarian-algorithm
yui-compressor
e4x
typoscript2
hamiltonian-cycle
unc
rdoc
chrono
removeclass
deobfuscation
servicehost
recent-documents
blitz++
thunderbird-lightning
privilege
port-number
spec#
mdac
dbisam
3gp

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App