Results 1 to 3 of 3

Thread: Multiple selected options not showing

  1. #1
    Join Date
    Aug 2011
    Posts
    2

    Default Multiple selected options not showing

    Hi,

    I have a drop down where the user can select multiple options, when I render the results in a custom html only the first selected item shows.

    For example.

    form.html
    <input type="hidden" mail_options="HTMLTemplate=mytemplate.html">

    <select multiple="multiple" name="locations">
    <option value="Sydney">Sydney</option>
    <option value="Melbourne">Melbourne</option>
    :
    :
    </select>
    mytemplate.html

    <b>$locations</b>

    So if someone selects both Sydney and melbourne only sydney will be shown in the email received.

    Does anyone have any ideas how to get around this?

    Thanks,
    Paddy

  2. #2
    Join Date
    May 2008
    Posts
    1,291

    Default Re: Multiple selected options not showing

    Code:
    <select multiple="multiple" name="locations[]">
    Note, the brackets in "locations[]".

    In the template, though, you'd still just use: $locations



    ginger

  3. #3
    Join Date
    Aug 2011
    Posts
    2

    Default Re: Multiple selected options not showing

    Thank you that worked perfectly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Selected Options on Dropdowns Not Working
    By centerNegative in forum Community Support
    Replies: 14
    Last Post: 05-Aug-2011, 03:28 AM
  2. Showing which checkboxes are selected in Html email
    By Melody Bridgewater in forum Community Support
    Replies: 2
    Last Post: 28-Mar-2011, 03:34 PM
  3. Need help with multiple options in a required field...
    By Frypantofire in forum Community Support
    Replies: 1
    Last Post: 07-Oct-2009, 09:54 AM
  4. fmbadhandler and selected options
    By goski in forum Community Support
    Replies: 10
    Last Post: 19-Aug-2008, 10:01 PM
  5. display multiple selected options?
    By Rella in forum Features Questions
    Replies: 1
    Last Post: 08-Nov-2006, 01:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •