Jump to content

Best way to do this (Add multiple items to a form)


mrjonnytou

Recommended Posts

Hi,

 

I have a form, on which I would like to be able to select an item from a list which then adds it to the form. I would like to continue adding items from the list until I eventually submit the form to add the values to the database.

 

Form example:

_______________________

Resource - (drop down list)

              manager

              developer

              support officer

              etc.

_______________________

 

When an item is selected, I'd like it to display like this:

_______________________

resource - (drop down list)

              manager

              developer

              etc.

_______________________

resources added

              manager

_______________________

 

and then be able to continue adding resources until I finally submit the form.

 

Any guidance is appreciated. What kind of thing do I need to be looking at to achieve this?

 

regards,

 

 

 

 

Link to comment
Share on other sites

javascript - unless you want to do something like have the form submit everytime the user makes a choice, then process and then output to the screen again... which would be a lot of reloading, which might slow the user experience - and you'd still need some javascript to submit the form onclick or onchange, though the javascript wouldn't be as complex.

 

but your best method would be pure javascript i think.

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.