The Rhyme of Sim'

Simon Hampel

  • facebook
  • twitter
  • linkedin
  • vimeo
  • github
  • stackoverflow
  • steam
  • Home
  • About
  • Trip Journals
    • Colombia 2012
    • Little Desert NP Road Trip 2010
    • Adelaide Road Trip 2009
    • Colombia 2009
    • Melbourne 2008
    • South America 2008
    • United States 2005
    • Perth 2004
    • Adelaide Road Trip 2003
    • Hong Kong 2003
  • Archives
  • Contact
  • The Rhyme of Sim'
You are here: Home / General / Multiple select options in HTML forms

Multiple select options in HTML forms

Thursday 5th August, 2004 Leave a Comment

*sigh* … I just wasted a couple of hours trying to work out why a simple HTML form with a SELECT control that allowed multiple options was not POST-ing an array of those selected options to be processed by the script. Even the specs don’t mention anything about this.

No matter what i tried, the information contained in the POST data only included the last option that was selected, rather than the array of options like I expected.

As it turns out, you need to do some magic with the “name” part of the select statement to make this happen.

Rather than:
<select name="selectionlist" multiple>

You actually need:
<select name="selectionlist[]" multiple>

Sheesh !

« Prev: Security updates for Mozilla products
Next: WindowsXP SP2 is ready »

Filed Under: General

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Simon Hampel

Welcome to my personal blog about life, family, work, travel, technology and such.

Recent Comments

  • Rachel on The Sims 2 resolution problems – solved !Yes to this! Thanks for the advice! 2021 and I was…
  • Shaun Hargans on EchosA standard glass beer Stubby (375 ml) has a neck d…
  • Bryanna on The Sims 2 resolution problems – solved !How does one run a notepad in administrator mode?
  • Dirk Collins on Day 19 – NavimagAdditional photos of the Casma https://web.archive…
  • Dirk Collins on Day 19 – NavimagNot the Cotopaxi. The Cotopaxi was found sunk outs…

Categories

Adelaide Roadtrip 2003 Adelaide Roadtrip 2009 Adoption Colombia 2009 Colombia 2012 Community Entertainment General Hong Kong 2003 Investing Melbourne 2008 Online Photography Software South America 2008 Sydney Technology Travel University Words Work Zoos
Tweets by @SimonHampel

Strava

My Other Sites

  • PropertyChat
  • InvestEd
  • Somersoft
  • Compare Funds
  • ZooChat

Useful Information

  • AUS vs US Mens Shirt Sizes
  • Star Wars Masters & Apprentices
  • Roland GAIA SH-01 Resources
  • Roland U-20 Resources

Copyright © 2025 Simon Hampel ยท Log in