Select control in table from array

Fairly new to PHP and could use some design assistance.  I have a page that contains a table.  That table is populated from a multi-dimensional array stored as a session variable.  I want to add a select list in one of the table columns and, when the value changes, update the appropriate array elements and refresh the page.  Must use the array because we don't want to commit the records to the mySQL database until they are complete and approved, in case the user just closes the browser without approving.

I've tried several different approaches, but can't seem to get it right, so I think I'm just on wrong track from a program flow point of view.  What's the best/recommended way to accomplish this?  Any suggestions and code snippets would be deeply appreciated.

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.

Pravin AsarPrincipal Systems EngineerCommented:
From the description of the problem, I think following could work for you.


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
springthorpeSoftwareAuthor Commented:
Many thanks for replying.  Looks more sophisticated than I need and, at first glance, is probably over my head to implement, but at least you took the time to offer assistance.  I'm very grateful.
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.