Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers Request free information on products written about or advertised in BYTE Submit a press release, or scan recent announcements Talk with BYTE's staff and readers about products and technologies

ArticlesDoing Dynamic Data


September 1996 / Reviews / Serving Up Data on the Web / Doing Dynamic Data

A normal database server delivers query results to the user's terminal. Providing Web access requires one additional step: formatting the results in Hypertext Markup Language (HTML). From a browser, the user submits a uniform resource locator (URL) specifying either a script (to be executed on the server) or a file. For example, the following URL would request Microsoft's Internet Information Server (IIS) to execute a script: http://www.nstl.com/sample.idc . The results are returned directly to the server as H TML instead of being saved as files. Such HTML pages produced by script execution are called dynamic pages because their content can be different each time the script is executed. HTML pages stored in files are called static pages because their content doesn't change between requests unless an administrator or developer explicitly modifies the file.

Web database applications can use either static or dynamic pages. Any database programming tool can produce static pages by writing output to a text file with appropriate HTML formatting. Dynamic pages aren't so easy to produce. They require specialized applications that can accept requests from an Internet server, access a database, and return HTML directly.

Dynamic pages offer two capabilities not available in static pages. First, a script can query a database based on user-supplied selection criteria, which can differ each time. For example, the following URL requests the query.idc script to return only those record s where the variable "state" contains the value CA: http://www.nstl.com/query.idc?state=CA .

A second capability of dynamic pages is data entry. A user can submit a request for a script that performs an insert or update operation rather than a query. Here the script must recognize the variables included in the URL as data with which to update the database. Many browsers allow the display of forms, which are HTML pages where users can enter information into fields. When the user finishes entering data, the system translates the information into a URL with variables, similar to the above example.

For a URL to initiate script processing, the Internet server must execute another program, pass information to it, and get information back. The Common Gateway Interface (CGI) is an API, supporte d by virtually all Internet servers, that allows interaction between an Internet server and an application. Unfortunately, CGI is notoriously slow, so many Internet servers provide their own, more efficient APIs. Microsoft IIS supports Internet Server API (ISAPI); WebSite Professional supports WebSite API (WS-API); and Oracle Workgroup Server supports Web Request Broker (WRB). Most Internet-server database-access mechanisms use their own APIs, but Cold Fusion, used by WebSite Professional, is a CGI application.


OLE, Can You C...My Data Request

illustration_link (30 Kbytes)


Up to the Reviews section contentsGo to previous article: Doing Dynamic DataGo to next article: Powerhouse Pentium Pro ServersSearchSend a comment on this articleSubscribe to BYTE or BYTE on CD-ROM  
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network