close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Saving Multiple Selections

Thread began 11/25/2009 3:18 am by Jaffa | Last modified 11/24/2014 1:07 pm by Jaffa | 6089 views | 23 replies

Jason ByrnesWebAssist

First, A multiple select list will only send all of the selected options in PHP if it properly named as an array (the name needs to end in "[]"). If it is not named to create an array, only the3 last selection made will be passed. the select tag should look like:

<select name="username[]" size="12" multiple="multiple">

using the implode function on an array will not create a separate record for each selection, it will convert the array to a comma separated list.

If you wish to save a unique record for each selection, you will need to hand code the insert, there is not a tool that will do this for you. You will need to code a loop through each index in the array, and execaute an SQL insert statement for each selected user name.

It will be easier to store the comma separated list in a single record.

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





Ease of use


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...