Jump to content

Inserting selected search results into another table


Recommended Posts

I'm trying to build a page in Dreamweaver where the user can search for records from one table and then choose which results he wants to insert into a second table. I'm trying to get it so that the user can check a checkbox in each record that he wants to insert into the second table.

 

I can get the search and results part working fine, but I can't figure out how to accomplish the second part of my goal--the ability for the user to check off which records he wants to insert, then press submit and have those results uploaded. I started out by including a checkbox in the repeat region area, but it doesn't have the intended result. Instead, only the very last result of any search gets inserted into the second table--even if that result isn't checked.

 

What should I do to fix this problem and accomplish what I'm trying to do?

 

Thanks!!

Link to comment
Share on other sites

Hi Luke,

Can you please post the HTML and PHP code for your website's form? I suspect it might have to do with the name your are giving to each field.  Is the input name being duplicated for each field?  Also, please post the code snippet that is inserting into the second database.  Do you have a live website where I can see this in action?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.