Accessibility

Dreamweaver Article

 

Building a contact management application using Adobe Dreamweaver Developer Toolbox – Part 2: Validating contact information


Razvan Cotlarciuc

Razvan Cotlarciuc

Adobe

Table of Contents

Created:
30 April 2007
User Level:
Beginner
Products:
Dreamweaver

In this tutorial series you will use Developer Toolbox features to build a web application for managing the contacts of a person or company. Multiple companies or individuals can be created, each with one or more contacts. The application will let you:

  • Display a full list of companies and their corresponding contacts
  • Add a new company to the database
  • Delete an existing company, together with all associated contacts
  • Add a new company and its main contact simultaneously
  • Add, modify, or delete contacts for a company
  • Validate entered e-mail addresses and phone numbers
  • Send automatic birthday greetings by e-mail

This tutorial series contains three parts, starting from the basic functionality, and enriching it with different features:

  1. Add, edit, and delete companies and contacts (Part 1)
  2. Validate contact information (Part 2)
  3. Improve the contact management application (Part 3)

In this part of the tutorial series, you will build the elements of your web application to validate contact information.

By following this tutorial section, you will build the application elements that will:

  • Validate the form to check e-mail and phone input
  • Remove associated contacts by deleting detail records
  • Verify the associated company by checking the master record

The estimated completion time for this section is about 40 minutes. It depends on your authoring knowledge with Adobe Dreamweaver and Developer Toolbox.

The estimated completion time for all parts of this tutorial (considering the initial planning, the mandatory sections, and the proposed improvements) is about 100 minutes. It also depends on your authoring knowledge with Adobe Dreamweaver and Developer Toolbox.

It's recommended that you follow all tutorial parts in the intended order to avoid potential problems.

Requirements

To complete this tutorial you will need to install the following software and files:

Dreamweaver CS3

Dreamweaver Developer Toolbox

Adobe Extension Manager

Sample files:

System requirements

  • You have installed one of the following web servers: Microsoft Internet Information Server 5.1 (Windows XP Professional) or 6.0 (Windows 2003), Apache 1.3.x or 2.0, or the built-in web server in ColdFusion 6.1 or later.
  • You have defined a Dreamweaver site with a testing server or remote server running ColdFusion 6.1 or later, PHP 4.4.0 or later, ASP 5.5 or later. Check out How to define a site in Dreamweaver (TechNote 14028) for instructions on correctly defining your site.
  • You have a working database connection from Dreamweaver to any supported database for your preferred server model.
  • If using ColdFusion, make sure the CreateObject function is enabled. You can enable and disable this function using the ColdFusion Administrator.
  • For the e-mail to be correctly sent, you also need to be able to use a SMTP server.

Prerequisite knowledge

I recommend that you are familiar with Dreamweaver CS3 Recordsets. Working with server behaviors will also be helpful.

About the author

Razvan Cotlarciuc is a member of the Dreamweaver development team. When he is not working on job-related projects, he enjoys learning new technologies, surfing the Internet, and playing tennis.