Error Handling
Using the project we have built so far—our online shop, you are going to implement error handling in several sections (pages). You need to make sure that the pages do not crash if an error is encountered, and that at the most, an acceptable error message is displayed, instead of the default error message one gets when the code crashes. You need to implement the error handling code to deal with any two of the following three scenarios:
Input XML file unavailable
Cookie variable does not exist or cannot be created (user disabled cookies)
Invalid values inside cookie variable
After you are done, test the web pages such that an error condition occurs. Take snapshots of the PHP pages when error conditions occur.
Make sure you submit the following:
Zipped project including all HTML or PHP or XML pages.
A word document with screenshots demonstrating how error handling was implemented and what message(s) the user gets when entering invalid values.
In your final paper, describe your PHP script and analyze alterative solutions for your website.
Then describe the process you used to create the shopping cart, include an explanation of reading the products and storing from the XML page.
Finally, provide a description how you handled errors in your website.
Submission Details
Support your responses with examples.Cite any sources in APA format.Name your document SU_ITS4112_W5_A2_LastName_FirstInitial.zip.