Electric Postcard Office Operating Manual

The Postcard Rack


Main page: the card rack

The main page of the Postcard Rack (cardrack.html) contains a list of the available picture categories. Each entry in the list is a category and is in this form:
 <a href="/script directory/rack-reading script?image database file|category title">
category name</a> 

readRack.perl is a CGI script and image database file/category title are its arguments, supplied as a query string. Remember that these arguments must be URL encoded: thus plus signs are used instead of spaces, etc.

Here is an example. Rheingold.list is the image database file and Digital+Neurostimuli is the category title:

<a href="/PO-bin/readRack.perl?Rheingold.list|Digital+Neurostimuli">
Howard Rheingold</a>
which produces: Howard Rheingold

Here is a more complex example. In addition to the regular encoding, if you want to include angle brackets (if, for example, you want to title to be an link), using the numeric encoding %3C and %3E for the brackets < and >. In this example, the header of the resulting page contains a link.

<a href =
"/PO-bin/readRack.perl?ArtN3.list|%3Ca+href=http://www.artn.nwu.edu/%3E(Art)^n%3C/a%3E+Gallery+3">
(Art)^n Gallery 3</a>
which produces: (Art)^n Gallery 3. Note that, on the resulting page, (Art)^n is a link. In this example:

image database file

For each category, there is a database file. This file has an entry for every postcard in the database. 2-5 is a good number of postcards to have in category. With more, it takes too long for the page of selections to load.

Fields in each entry are separated with vertical bars: | An entry is in this form:

code | image-path | title | artist
Here is the first line from the file that produced this page:
12|Postcards/PostCardPix/Rheingold/familiar.gif|Familiar|<a href = http://www.well.com/www/hlr/> Howard Rheingold</a>

Return to Electric Postcard Operations: Introduction

Last modified: Sun Apr 7 01:22:30 1996