Best Method to Store Data Before Post

I'm not sure how to do this or what the best method would be.

I have a webpage in php/html/jquery.  The user can click the add button on different options, without refreshing the page.  I want to store those options that they select and when they submit all the options are passed over.

What's the best method?  When they click add store that input value in another input that's comma delimited or something that's passed on post submit?
LVL 12
Nathan RileyFounderAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
That's pretty vague and confusing.  Do you have a page or code we could look at?
Nathan RileyFounderAuthor Commented:
Ah sorry, no I don't have the page built yet, I'm trying to figure out what the best method would be to do this.

Here is an image though.
As you can see there is an add button, I want them to be able to click add on any they want, then they would hit submit.  We then display the data of the users they "added" on the next page.
Nathan RileyFounderAuthor Commented:
I'm not sure if this is good practice or not, but one method I thought of would be to have a hidden checkbox element for each, when you click add it checks that box via jquery.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Tom BeckCommented:
You could just make the add button a checkbox instead with the word "Add" next to it. Make the checkboxes part of a form and the checked images will be included in the post.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
I agree with Tom Beck, I don't know why you would want to do it twice.  Using a checkbox also let's the user see what they have selected.
Nathan RileyFounderAuthor Commented:
It took some convincing, but the client agreed to change it up as per your guys suggestions.

Dave BaldwinFixer of ProblemsCommented:
You're welcome, glad you got it worked out.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.