close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple Update Form not working

Thread began 9/28/2009 9:20 am by jon245706 | Last modified 11/03/2009 4:30 pm by jon245706 | 2640 views | 7 replies

Eric Mittman

There are a few ways that you can deal with this multiple values for a single record. You could have another table that holds these values and has a column to relate to the main table with this info. This is probably the best way to go so that you can keep all of the data intact and easily retrievable.

You can also modify your existing page to allow for more than one value to be inserted into the column of your db based on the multi select from the form. This way though will leave you with a column full of value for a particular record and may not be the easiest way to retrieve results.

If you would like to have it work the way it is now you would need to do two things:

First, you will need to find the select input on the page and add [] to the end of it's name and id. This will force the php code to look at the data as an array of data, which it is.

If you just changed this you would seen an entry in your db that just said array. To break out the individual pieces you will need to add in an implode function around the value for this select list. When you add in the implode you will need to decide what character you would like to use as the separator.

In the code on the page this will look like this for your update:

php:
implode(", ", $_POST["your select list"])



This will make the array of user selections into one string with the values separated by a comma and space (, ). This implode function would be added to the source code inside of your update or insert server behavior. If you post back with the page in question in a zip archive I can show you where these changes would need to be made.

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