close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Save text instead of ID (value)

Thread began 8/04/2009 3:43 am by fredrik.andersson231264 | Last modified 8/04/2009 2:37 pm by Eric Mittman | 1928 views | 2 replies |

fredrik.andersson231264

Save text instead of ID (value)

Hi,
I might probably completely wrong and this is more a mm_insert-issue, but it's the dynamic dropdown extension that causes me to be in this situation so I'll write a line..

We have a page regarding registering to a martial arts competition. The weightclasses differs between the genders so we thought Dynamic dropdowns could be a good idea.

Dropdown 1: Gender (male/female)
Dropdown 2: Belt (Black, white, blue etc.)
Dropdown 3: Weight classes (74 kg, 82 kg etc. list depending on gender)

We have finally got it running och connected a formbutton and mm-insert to the form to save their choices in MS access.

Our problem is that it saves the ID's and we really need to have it saving the text (i.e. Male, Black, 74 kg instead of 1, 7, 24) choosed in the different dropdowns.

We would greatly appreciate any help/assistance to do this as the function right now is useless to us.

Best regards
Fredrik

Sign in to reply to this post

fredrik.andersson231264

The code

The ASP code of the page

Attached Files
aspcode.txt
Sign in to reply to this post

Eric Mittman

There are a few ways that you could accomplish this but I think the most simple would be to include some new recordsets on the page for these three tables that will be filtered by the id values from the select list.

You then need to update the insert to use the values from this recordset rather than the form values it is using now. This second part may require you to edit the code for the insert.

If these values are coming from three different tables then you should add in three recordsets, one for each table. They should be simple recordsets that are filtered on the posted values from their respective select list.

When you edit the insert you will replace the posted values with the recordset values for their label rather than the id's.

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