Case Study: Adding Sessions to the Winestore
In this section we use sessions to improve the user interaction with the client entry <form> developed in Chapter 6. The improvements focus on the interaction when the <form> is submitted and fields don't validate. We modify the scripts to:
-
Display error messages on the client entry <form>
-
Use session variables to pass back the submitted fields to the <form> generation script, saving the user rekeying all the data to correct the errors