CGI Scripting

Course Code: ACG2

Description
CGI Scripting with IC/400 is a self-paced, audio-cassette course designed to provide RPG programmers with essential skills for developing WWW- based applications. Using an example Web site scenario, participants will develop Common Gateway Interface scripts that redirect browsers to other Web pages, capture data from Web pages and browsers in AS/400 database files, and generate whole Web pages that include AS/400 data. The course software includes all example RPG, CL, and HTML source code; a collection of reusable subroutines; and a ready-to-go name and address database application.

Upon completion you'll be able to:

Code, compile, test, and debug RPG CGI scripts.
Redirect a Web browser to another URL.
Use input fields, text areas, selection lists, checkboxes, and radio buttons in Web pages.
Retrieve user-supplied data from Web pages.
Retrieve CGI environment variables such as the browser's IP address and host name.
Store retrieved data in AS/400 database files.
Dynamically create Web pages that include AS/400 data with RPG CGI scripts.

Configuration
CGI Script Libraries
Development Environment
Internet vs. Intranet Issues
IFS Directories and Files
HTML Form Fields
Input Fields
Text Areas
Selection Lists
Checkboxes
Radio Buttons
GET vs. POST Methods
CGI Environment Variables
IP Address
Query String
Host Name
Server Software
Server Name
Others
Creating HTML Documents Dynamically
Content-Types
Handling Numeric Data
Formatting AS/400 Data in Web Pages
APIs
API Parameters and Return Codes
Read Standard Input
Write Standard Output
Convert to Database Field
Get Environment Variable

Audience
Experienced RPG programmers who need or want to develop WWW-based applications.
Prerequisites
Some HTML experience
Batch RPG and CL programming experience
Client Access/400 (Windows or OS/2) experience
IC/400 configuration and operations experience
Format
Self-Instructional Audio-Cassettes
Materials
Six Audio-Cassettes
Student Text
Workbook
Diskette
Time Required
Approximately 10 Hours

Copyright © Vermillion Associates, 1997