WEBDEV Concepts
76 Part 2: Developing a site Performing a process on several successive pages In a business site, orders can be placed on several pages: • page 1: Select products to order. • page 2: View basket. • page 3: Validate the order and enter the customer details. Page 1: Products. Page 3: Customer details. Page 2: Basket. In this case, the write-to-file operation must ONLY be performed in the code of the button that will validate the order : all elements must be stored until the order is validated. Don’t write to the data files being processed. Remark : You also have the ability to use a transaction but we recommend that you store the order details.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==