File cgi.icn

Summary

###########################################################################

	File:     cgi.icn

	Subject:  Procedures for writing CGI scripts

	Authors:  Joe Van Meter, Clinton Jeffery, Federico Balbi,
		  Kostas Oikonomou, and Wade Bowmer

	Date:	  October 27, 2005
       Revised:  May 2007

###########################################################################

 This library makes programming cgi programs easier by automatically
 checking for title and body procedures.  There are other procedures
 that do some repetitive things for the programmer.

###########################################################################
Procedures:
cgiColorToHex, cgiEcho, cgiError, cgiFixHex, cgiHexchar, cgiHexval, cgiInput, cgiMethGet, cgiMyURL, cgiOptwindow, cgiPrePro, cgiPrintVariables, cgiReadParse, cgiRemoteUser, cgiRndImg, cgiSelect, cgiXYCoord, main

Records:
HMap

Global variables:
cgi, cgi_hexen

This file is part of the (main) package.

Source code.

Details
Procedures:

cgiColorToHex(s)


cgiEcho(f, args)


 cgiEcho(file,args[]) - write a file to both HTML stdout and a regular
  text file, if one is present


cgiError(in)


cgiFixHex(s)

 Replaces any hex codes in the given string by their ascii character
 equivalents and returns the fixed string.


cgiHexchar(c1, c2)


cgiHexval(c)


cgiInput(ty, nam, va)


 cgiInput(type, name, values) -


cgiMethGet()


cgiMyURL()


cgiOptwindow(opts, args)


cgiPrePro(filename, def)


cgiPrintVariables(in)


cgiReadParse()


cgiRemoteUser()


 cgiRemoteUser(): returns the reported Web user.


cgiRndImg(GifList, AltText)


cgiSelect(nam, va)


 cgiSelect(name, values)
 this program with the name and value makes a select box


cgiXYCoord(hlst)


main(args)


Records:

HMap(value, x1, y1, x2, y2)


 cgiXYCoord()
 This procedure is used with a ISMAP to figure out what the x and y coords
 and if they are between a certain boundry. It returns the value of the
 list that was entered.


Global variables:
cgi -- table of input fields

cgi_hexen -- set in cgiReadParse()


This page produced by UniDoc on 2021/04/15 @ 23:59:54.