|
|
|
|
|
25. Performing a process on several successive pages
In a business site, orders can be placed on several pages: - page 1: Selecting the products to order.
- page 2: Viewing the basket.
- page 3: Validating the order and typing the customer details.
| |
| | Page 1: Product selection |
| |
| Page 2: Shopping cart | Page 3: Customer details |
In this case, the write-to-file operation must ONLY be performed in the code of the button for confirming the order. All the elements of the order must be stored until the order is confirmed. Don't write to the data files being processed Note: It's also possible to use a transaction, but it is recommended to save the order details.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|