• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Form Data Validation > Using Server-Side Validation

Using Server-Side Validation

As mentioned earlier, server-side validation involves adding code to your application that performs form field validation after the form is submitted. In ColdFusion this usually is achieved with a series of <CFIF> statements that check each field's value and data types. If any validation steps fail, processing can be terminated with the <CFABORT> function, or the user can be redirected to another page (maybe the form itself) using <CFLOCATION>.

Two ways to perform server-side validation are available in ColdFusion. Let's look at basic server-side validation first, and then you'll use embedded validation codes to automate the validation where possible.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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