Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

How Do I Retain....

Recommended Posts

Using php, I am trying to develop an order form, which will accept order details one at a time.On submitting the form, it will call itself and print the data already added and present new text boxes to enter new item details.In theory, this can go on for infinite line items.Question is, how do we retain more than 1 row of elements in the array ?Verbose:We have text boxes for user to enter data.The user will enter the part number, and "other details".And Press the "Add" button.On pressing Add, the part number will be looked up in the DB and other info such as Price, Description pulled out.Page will call itself.The already entered data, plus whatever was extrapolated, will be printed on the first line.Another set of text boxes will be presented.Same process will repeat and on presenting form again, we will see line item 1 and line item 2.This will go on, till one presses, Finalize Order.How do we go about doing it?Another way would be to store it all in a temp table on the DB, but somehow that does not seem the right way to do it.thanks for help

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.