• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

HTML forms are used to collect data from application users. In this chapter, you reviewed the concepts necessary for creating, validating, and using FORM variables. Once FORM elements are named, and the user fills in the value and submits the form, you can have the ColdFusion application server perform either server-side or client-side validation on the entries. You also have the option of creating your own custom validation before performing any other processing on the action page.

Sample Questions

1:What is the recommended METHOD to use when submitting forms to ColdFusion pages?
  1. get

  2. action

  3. post

  4. head

2:Which of the following is an example of a form control that does not pass a value to the action page by default?
  1. Text box

  2. Text area

  3. Checkbox

  4. Drop-down select control

3:Consider the following checkboxes:
<input type="checkbox" name="FavCountry" value="US">United States
<input type="checkbox" name="FavCountry" value="CAN">Canada
<input type="checkbox" name="FavCountry" value="ENG">England
<input type="checkbox" name="FavCountry" VAlUE="FRA">France

If you check France and Canada, what would your FORM variable look like?

  1. FavCountry=CAN,FRA

  2. FavCountry=CAN

  3. FavCountry=FRA

  4. FavCountry=CAN&FRA

4:Which form of validation is the most secure?
  1. Client-side

  2. Auto-generated server-side

  3. Manual server-side


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint