2.2.3 Question
Multiple Choices
In which of the following scenarios should you include validation? (Choose all that apply.)
- A. You have an online diary with two form fields, a title, and a large subject box. A title is not required, and the subject content is stored in a database column with no maximum size.
- B. The web application you maintain has an area that serves as a pass-through to another company’s web services. The form contains personal information, such as address and phone number, and is used to set up a profile on the company’s retirement partner website. The partner has never given you any instructions as to what is or is not required to be sent to them.
- C. Your application is a long wizard that college students use to apply for financial aid. They do not have access to the application until they are already logged on to the system so the application knows who they are. Most students will log on many times to finish the application, so any field might or might not be completed at any time.
- D. You are developing a simple form that helps home brewers keep track of their process. The form provides two input fields: Date/time and ph level. The Date/time box needs to be an ordinary text box because people around the world might enter the date differently, in a way that is meaningful to them. The ph level can be either a numeric value or a text description.