close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

List/Menu allow Multiples in Email

Thread began 7/02/2010 1:52 am by Intrigue25 | Last modified 7/07/2010 9:56 am by Jason Byrnes | 685 views | 3 replies |

Intrigue25

List/Menu allow Multiples in Email

Hello,

I am using Universal Email 4 and i have a List/Menu box that has the option " Allow Multiples Selection" turned on. But I can't seem to get it to display in the email body. (it just shows one item, when i have 3 or 4 selected).

Any Suggestions?

Sign in to reply to this post

Jason ByrnesWebAssist

for a multiple select list to pass multiple values, it must be named with '[]' at the end to create an array:

php:
<select name="myList[]" size="1" multiple="multiple" id="myList">
    <option value="1">one</option>
    <option value="2">two</option>
    <option value="3">three</option>
    <option value="4">four</option>
    <option value="5">five</option>
    <option value="6">six</option>
  </select>



to out put the multiple selections in the email, you need to use the implode function to convert the array:

php:
<?php echo((isset($_POST["myList"]))?implode(", ",$_POST["myList"]):""?>
Sign in to reply to this post

Intrigue25

Output "Array"

Jason,

I am getting the word Array where the items are supposed to be listed. Output below

Phone: 516-652-3903
Email: thrive25@gmail.com
Event Date: 2-9-10
# of Guests: 100
Menu Style: Array <--
Other info/ Requests:
test

Sign in to reply to this post

Jason ByrnesWebAssist

you need to use the implode function to convert the array to a comma separated list:

php:
<?php echo((isset($_POST["myList"]))?implode(", ",$_POST["myList"]):""?>
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...