• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: combine two dropdown value into one hidden field

combine two dropdown value into one hidden field 4 years 1 month ago #41024

  • bhenah
  • bhenah's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
$_POST = $_POST . " " . $_POST;

I found script above from this group and worked perfectly using text fields.

however, when i'm trying those script merging values from two dropdown. the output in hidden field is " ARRAY ARRAY"
The administrator has disabled public write access.

combine two dropdown value into one hidden field 4 years 1 month ago #41040

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

For dropdown type fields please try using the following syntax:
$_POST['form']['field-name'] = $_POST['form']['first-dropdown-name'][0] . " " . $_POST['form']['second-dropdown-name'][0];
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
Last Edit: 4 years 1 month ago by andreic.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!