Candyce Mairs

Candyce Mairs

Building an Action Page

Slide Duration:

Table of Contents

Section 1: Introduction
Course Overview

2m 2s

The Course Environment

2m 23s

Section 2: Setting Up the Dynamic Environment
Static vs. Dynamic Requests

5m 40s

Installing ColdFusion

10m 33s

Installing the Course Files

4m 34s

Modifying the ColdFusion Administrator

5m 15s

Installing ColdFusion Builder

7m 16s

Setting Up ColdFusion Builder

7m 36s

Section 3: Working with ColdFusion
Using ColdFusion Templates

7m 16s

Variable Scoping

6m 55s

Setting and Displaying Variables

7m 58s

Creating Include Files

7m 9s

Understanding Page Processing

5m 3s

Building a Template

5m

Section 4: Creating Data-Driven Pages
Setting Up the Datasource, Part 1

7m 28s

Setting Up the Datasource, Part 2

6m 11s

Getting Data from the Database

6m 40s

Displaying Query Data

8m 12s

Understanding Query Properties

6m 53s

Using the CFDUMP Tag

6m 15s

Debugging

8m 10s

Section 5: Passing Data Between Pages
URL Variables

4m 2s

Passing Data Between Pages

9m 35s

Testing for Variables

8m 42s

Setting Up the Tours Process

8m 32s

Completing the Tours Process, Part 1

8m 9s

Completing the Tours Process, Part 2

8m 55s

Section 6: Using ColdFusion Forms
Form Basics

5m 9s

Benefits of ColdFusion Forms

2m 17s

Updating a Form

7m 20s

Converting Fields to ColdFusion Fields

3m 35s

Section 7: Form Data Validation
Form Validation

6m 52s

ColdFusion Validation Options

8m 17s

Adding ColdFusion Validation

6m 12s

Building an Action Page

12m 37s

Redirecting the User

4m 48s

Using the CFMAIL Tag

8m 4s

Bringing It All Together

4m 52s

Loading...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of ColdFusion 9
Bookmark & Share Embed

Share this knowledge with your friends!

Copy & Paste this embed code into your website’s HTML

Please ensure that your website editor is in text mode when you paste the code.
(In Wordpress, the mode button is on the top right corner.)
  ×
  • - Allow users to view the embedded video in full-size.
Since this lesson is not free, only the preview will appear on your website.
  • Discussion

  • Study Guides

  • Table of Contents

Start Learning Now

Our free lessons will get you started (Adobe Flash® required).
Get immediate access to our entire library.

Sign up for Educator.com

Membership Overview

  • Unlimited access to our entire library of courses.
  • Search and jump to exactly what you want to learn.
  • *Ask questions and get answers from the community and our teachers!
  • Practice questions with step-by-step solutions.
  • Download lesson files for programming and software training practice.
  • Track your course viewing progress.
  • Download lecture slides for taking notes.
  • Learn at your own pace... anytime, anywhere!

Building an Action Page

  • Cfform offers 2 types of validation
  • Client & server
  • ColdFusion has extended HTML forms to give more power and ease of use
  • ColdFusion form tags and subtags let you create dynamic forms in three formats
  • Adds hidden form fields for server validation
  • Just convert form tag to cfform tag
  • Changes default method to post & action to self posting so you don’t have to add these
  • Add validation to the <cfinput> tag using the following attributes
  • required = “yes”
  • validate = “validation type
  • message = “error message
  • range =”min-value, max-value
  • validateAt =”onServer|onBlur|onSubmit”
  • ValidateAt attribute accepts three values
    • onServer
    • onSubmit
    • onBlur
  • Use one or more by separating these values with commas
  • validateAt=”onServer, onSubmit”
  • Requiring data using onSubmit
    <cfinput type="text" name="FIRSTNAME" size="20" maxlength="20" required="yes" message="Please input an Artist’s first name." validateat="onSubmit" id="FIRSTNAME">
  • Add cfform & cfinput tags with validation to the suma tour suggestion form
  • required = “yes”
  • validate = “validation type
  • message = “error message
  • Create a recordset to fill the list/menu control
    <cfquery name="qCountries" datasource=“suma"> SELECT countryID, country, FROM country </cfquery>
  • Use three attributes
    <cfselect name="name" query="recordset" value="column value to pass" display="column value to display"></cfselect>
  • Resulting list/menu control
    Educator®

    Please sign in to participate in this lecture discussion.

    Resetting Your Password?
    OR

    Start Learning Now

    Our free lessons will get you started (Adobe Flash® required).
    Get immediate access to our entire library.

    Membership Overview

    • Available 24/7. Unlimited Access to Our Entire Library.
    • Search and jump to exactly what you want to learn.
    • *Ask questions and get answers from the community and our teachers!
    • Practice questions with step-by-step solutions.
    • Download lecture slides for taking notes.
    • Track your course viewing progress.
    • Accessible anytime, anywhere with our Android and iOS apps.