Gift Guide

CGI Bible


Only some Web browsers support Java and JavaScript, only some VBScript -- and few people upgrade to new releases fast enough to suit the creativity of Web developers. Luckily, there's CGI (Common Gateway Interface), which allows fancy functionality, processing, and interactivity to take place on a Web server, so it doesn't much matter whether it's Netscape Navigator or Microsoft Internet Explorer, version 2 or...
See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (4) from $1.99   
  • Used (4) from $1.99   
Sort by
Showing 11 – 10 of 0
We’re having technical difficulties. Please try again shortly.
Showing 11 – 10 of 0
Sort by
Sending request ...


Only some Web browsers support Java and JavaScript, only some VBScript -- and few people upgrade to new releases fast enough to suit the creativity of Web developers. Luckily, there's CGI (Common Gateway Interface), which allows fancy functionality, processing, and interactivity to take place on a Web server, so it doesn't much matter whether it's Netscape Navigator or Microsoft Internet Explorer, version 2 or version 4 on the client side.

If you've programmed in other languages, you'll find CGI scripting pretty straightforward once you get the hang of it. If you've never programmed before, CGI is a good place to start. In either case, you'll find CGI Bible an indispensable resource and guide as you begin using CGI scripting to add valuable functionality to your Web pages.

CGI Bible provides concise, authoritative solutions to...

  • Creating interactive forms for exchanging information with users
  • Using CGI to connect to SQL (Standard Query Language) databases
  • Handling complex user interactions with clickable image maps and search engines
  • Securing customer communications using the latest security standards
  • Adding sound and video clips and building intelligent user agents

Four popular authors have combined efforts to give you the ultimate start-to-finish tour of CGI programming in this update of the best-selling Foundations of WWW Programming with HTML and CGI. You could ask for no more CGI-savvy authors than Ed Tittel, Mark Gaither, Sebastian Hassinger, and Mike Erwin.

Plus, on the bonus CD-ROM you get with CGI Bible, you'll find...

  • Complete URL listings from the book
  • Ready-to-use source code
  • And excellent HTML and CGI developer utilities.

Even though the Internet changes daily, CGI is still a popular tool that works with any web server. A revision of the bestselling Foundations of WWW Programming with HTML and CGI, this book lays down the basics for readers' Web education and helps them master new features of HTML and CGI. The CD-ROM contains the complete text of the book in HTML format plus all code and examples.

Read More Show Less

Product Details

  • ISBN-13: 9780764580161
  • Publisher: Wiley, John & Sons, Incorporated
  • Publication date: 12/1/1996
  • Series: Bible Series
  • Edition number: 1
  • Pages: 750
  • Product dimensions: 7.39 (w) x 9.21 (h) x 1.91 (d)

Table of Contents

Parts Is Parts
Part I: The Foundations of HTML and CGI
Part II: The Bridge to CGI Implementation
Part III: Basic CGI Programming Elements and Techniques
Part IV: Advanced CGI Programming Tools and Techniques
How to Use This Book
Conventions Used in This Book
But Wait, There's More!
Bon Voyage!

Part I: Foundations of HTML and CGI

Chapter 1: Basics of the World Wide Web
The Internet: An Amorphous Blob
The HyperText Transfer Protocol (HTTP)
How HTTP Works
HTTP Character Sets
The Common Gateway Interface
The HyperText Markup Language (HTML)
How to Read an HTML Document
Descriptive Markup
Hierarchical Document Structure Plus Interconnections
The Formal Specification
Human- and Computer-Readable Representation
Chapter 2: An Introduction to SGML
What Is SGML?
The SGML Philosophy
SGML's Primary Characteristics
Descriptive Markup
Hierarchical Plus Interconnections
Flexible Tags
Formal Document Specification
Human and Computer Readable Representations
SGML Document Structure
The SGML Declaration
Element Attributes
Marked Sections
Marked section keywords
Rules for marked sections
General SGML Rules
A Brief SGML Bibliography
Chapter 3: The HTML DTDs
History of HTML
Workings of the IETF HTML Working Group
IETF Level 1 DTD
The Level 1 DTD
IETF Level 2 DTD
DTD Feature Test Entities
New Elements of HTML 2.0
Enhanced Elements of HTML 2.0
Deprecation in HTML 2.0
IETF Level 3 DTDs
Netscape Extensions
Migrating from HTML 2.0 to 3.2
Chapter 4: HTML and Validation
What Is HTML, and How Should You Use It?
What Is Valid HTML?
Doing the "DTD Thing"
Testing for Compliance
HTML 2.0: The Reigning DTD
HTML 3.0: The Coming DTD
It's No Accident That Mozilla Is Named after a Monster!
Choosing an HTML DTD
Adding Value to Your Web Site
Advantages of Validation
Disadvantages of Validation
Validation Tools
Ignorance Isn't Always Bliss!
Get the Right Tool for the Job
The Not-So-Hidden Beauties of Compliance
WebTech's HTML Validation Service
WebTechs HTML Check Toolkit
sgmls and sp
The DTD Is Prolog to the Future
DTD Reference Methods
Validation Alone Is Not Enough
What's in a Process?
The simple, manual approach
The simple, programmatic approach
Chapter 5: The Future of HTML
A Closer Look at HTML 3.0
New HTML 3.0 Elements
Math Equations and Formulae
HTML Style Sheets
Chapter 6: The Common Gateway Interface
What Is the Common Gateway Interface?
The CGI Specification: Extending HTTP
A Cast of Environment Variables
Accessing CGI Variables
The CGI Command Line
CGI Data Input
CGI Data Output
Chapter 7: CGI Programming Languages
Choosing a CGI Programming Language
The Five Primary Considerations
Public Source Code Repositories
Language Support
Your Level of Knowledge and Understanding
Desirable Data Throughput
Compiled CGI Programming Languages
Interpreted CGI Programming Languages
UNIX Shell Scripting Languages
Visual Basic
Compiled/Interpreted CGI Programming Languages
Chapter 8: CGI Input and Output
A Different Sort of Input Method
GET It While You Can
Using the GET method
They're at the POST!
The Ins and Outs of <FORM> Data
<FORM> Tags and Attributes
An Example Form
The Inside Scoop on CGI Output
Chapter 9: Designing CGI Applications
A Language for All Seasons
Design of the Registration Form
Mapping Fields to Variables
Variable Error Checking
Alternate Methods of Data Capture
Designing the Output File Format
Designing a Report Writer
Building in Counters and Status
Overall Design Thoughts

Part II: The Bridge to CGI Implementation

Chapter 10: Building and Installing CGI Applications Anatomy of a Perl Script
Setup and Initialization
Processing User Input
Closing Arguments
Debugging Is a State of Mind
The Raw Data File
Registration Statistics Summarizer
The Final Output
Final Touches
What's Next?
Chapter 11: Testing and Installing CGI Applications
It's a Dirty Job, but...
Setting Up a Test Environment
The Test Web Is the Best Web!
Installing a Test Server
The Root of All Testing
An Alias by Any Other Name
The Act of Creation Is Best Done in Private
The Good, the Bad, and the Boundary
A Simple Test Strategy
Chapter 12: Our Development Environment
Basic Assumptions
For Better or Worse, Our Platform Is UNIX
Our Language of Choice Is Perl4
We'll Work with Either CERN or NCSA httpd
We Take Good Tools Wherever We Can Get Them!
Chapter 13: Locating CGI Resources
Going Straight to the Internet Sources
Internet Resource Types
For Every Resource Type, There's a Search Method
CGI-Related Newsgroups
CGI-Related Mailing Lists
Parties Interested in CGI
CGI-Focused Groups and Organizations
CGI-Related Publications and Off-Line Resources
Searching for Satisfaction
Chapter 14: CGI Return Page Templates
What's in a Page?
Static Versus Dynamic Content
Give Me Some Static!
The Happy Medium: Dynamic but Constant
The Truly Dynamic
Building the HTTP Header
Building the HTML Header
The HTML Document Body
The Beginning of the Body
Dealing with Recurrent Elements
Incorporating Preformatted Text
Encoding HTML Markup
Handling HTML Document Footers
Other Template Tricks
Chapter 15: The Major CGI Libraries
Looking for CGI Nirvana
Round Up the Usual Suspects
Ask an Expert!
Do Some Reading
Some Select CGI Sites
Using CGI Programs Effectively
Publish and/or Perish!
Chapter 16: <FORM> Alternatives
From <FORM> to Text
From HTML Back to Text
Registration Form, Part 1
Registration Form, Part 2
Registration Form, Part 3
Registration Form, Part 4
Registration Form, Part 5
Shipping the Text-Only Form File
Chapter 17: Gotchas, Warnings, and No-Nos
HTML's Barest Necessities
CGI Programming Gotchas

Part III: Basic CGI Programming Elements and Techniques

Chapter 18: Mastering MIME
The Marriage of MIME and HTTP
Divergence of HTTP from MIME
MIME and CGI Applications
The MIME ".mailcap" File
Global and Personal .mailcap Files
Chapter 19: Using WAIS with CGIs
WAIS Architecture Unmasked
WAIS Protocols
WAIS as a Client and a Server
WAIS Databases Revealed
Indexing 101
How Is the Index Used?
Do I Need a Gateway? What for?
Finding WAIS Gateways
Exploring WAIS as a User
What's the Difference between waisq and waissearch?
Other WAIS Information
Indexing Hierarchies of HTML Documents
WAIS and HTTP Integration
Usenet News Archives
Mailing Lists
Futures and Cool Engines
Chapter 20: Indexing Your Web Site
What to Include
Installing and Configuring freeWAIS
Using CGIs to Format the Output
Using SWISH to Index Your Site
Customizing Search Results
Other OS Options
Apple Macintosh
Windows 95/Windows NT
Chapter 21: Getting Hyper: Principles of Hypertext Design
Stringing Pages Together, the Old-Fashioned Way
Hierarchies Are Easy to Model in HTML
Multiple Tracks for Multiple Audiences
The RFC Library
The Principles of Hypertext
Annotate All External References
Indicate the Scope and Size of Your Materials
Limit the Complexity of Your Index
Match Your Structure to Your Content
Present Distinct Topics as Distinct Documents
Provide Appropriate Access Methods
Supply Easy, Consistent Navigation Tools
Use Links as References
Chapter 22: Monitoring Web Server Activity
Talking with the Log Lady: HTTP Log Analysis, Parsing, and Summaries
Swiss Army Statistics from getstats
Bean Counter's Wet Dream: WWWstat
Mac See, Mac Do: WebStat
Figure Painting: Making the Leap from ASCII to GIF
Statistics in 3-D
Case Studies
Commercial-Grade Statistics
Future Logging Models
Chapter 23: Robots, Spiders, and WebCrawlers
A Robot Taxonomy
Is the World Ready for Yet Another Robot?
A Rationale for Robot Creation
Identify Yourself and Your Robot
Spread the Word
Stay in Touch
Notify the Authorities
Don't Be a Resource Hog
Stay in Charge
Share Your Robot's Wealth
A Standard for Robot Exclusion
More Robot Hangouts
Chapter 24: Webifying Documents
The Zen of Webification
Tools and Environments
The Integrated Chameleon Architecture
Other Publicly Available Tools
Life after Translation
Chapter 25: Image Maps
The Art of GIF-Giving
Aids to Navigation
Great Frames for Interactive Input
Other Exotic Applications
Making Image Maps Work
Creating Hot Spot Definitions
WebMap for Macintosh
mapedit: Creating Image Maps in Windows
Web-based Image Map Utilities
Map Conversion Utility
Imagemap CGIs
NCSA imagemap
CERN htimage
Client-side Image Map Format
Image Maps on Macintosh Web Servers
Oddities and Cool Stuff
Cyberview3D Document Generator
Caveats and Tips to Click
Small Is Beautiful
Present Alternatives
Keep It Simple
Keep It Professional
Use Your Imagination!
One More Very Important Point
Chapter 26: HTML Document Creation On-the-Fly
Browsing Mail
Webified man Pages
FTP Browsing
Oddments, Helpers, and Horizons
Ghostscript: GIFs-on-the-Fly
Additional CGI Elements
Chapter 27: Getting the Best Buy For Your Bucks
Where to Begin
Getting Connected
Housing a Server at Your Site
Housing Your Server at the ISP
What Do I Need to Watch For?
Comparing UNIX Servers
Other Platforms
Choosing a Mac Server
Choosing a DOS/Windows PC Server
Choosing a Windows NT Server
Web Server Miscellany
Load Balancing Strategies

Part IV: Advanced CGI Programming Tools and Techniques

Chapter 28: File Access Through the Web
All Browsers Are Not Created Equal
Through a Glass, Darkly
FTP Versus HTTP as a File Retrieval Protocol
Lister, You Lazy Sod!
File Index Searching
c|net: The Computer Network
Local Indices
Individual File Retrieval and Whatnots
Attack of the Killer httpd Server
Chapter 29: Database Management Tools
What Makes One Database Unlike Another?
Relational Databases Overview
Why Connect a DBMS to the Web?
Composing an Interface
Build a Simple CGI from Scratch
Database Access Methods
Further Directions in Databases
What Is CORBA?
CORBA and the Web
The Microsoft Direction
Chapter 30: The Net's Multimedia Resources
Would You Care for a Refreshed Image?
Traffic Watch
Constantly Refreshed Pictures
Real-Time Video
Video Standards
Automatic Talking Machine
Blue Dog Can Count
Internet Telephony
Telephony-ready Computers
A/V: Together at last...
Virtual Worlds Await...
Shockwave for Director
Adding HTML Interactivity
Chapter 31: Electronic Mail Gateways
Have Your CGI Mail My CGI
Proprietary Tagging
Building a Better Mail Handler
Too Complex? E-Mail Gets Simpler
Next Verse, Same as the First (on MacOS)
Mailing List Interface
Search and Retrieval
List Administration Tools
Chapter 32: WWW Server and CGI Security
An Open Door Is Not Always Good...
Security Is Like Mowing the Lawn...
What Risks Am I Taking? Isn't the Web Public Anyway?
A Typical UNIX httpd Configuration
UNIX Permissions and Ownerships
Limiting Access to Internal Servers
.htaccess Gives You Power
To UNIX or Not to UNIX?
How Can I Tell if Someone Has Broken the System?
The Benefits of Secure Transit
Other WWW Security Mechanisms
Technical Details of SSL
The Relationship Between SSL and SHTTP
Some Places to Go...
Chapter 33: Customizing a Site for a Visitor
Information You Need to Know
Click Here for Your Browser Type
When Man Stares into the Web, the Web Stares Back
Information Delivered by HTTP_USER_AGENT
Agents of Our (Page) Construction
Breaking Browsers Down
Serving a Tailored Document
Serving It Up with
Serving Special Markup from within a Document
<TABLE> versus <PRE> From Within a Document
Resources for Browser Information
What's the Most Popular Browser?
Comparing Browser Capabilities
Chapter 34: CGI Bible: The CD-ROM


Contact List


License Agreement

CD-ROM Installation Instructions

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)