Cover V05, I04
Article
Listing 1
Listing 2
Listing 3
Listing 4
Listing 5
Table 1
Table 2
Table 3

apr96.tar


Listing 2: Parse the QUERY_STRING passed to the server script from the client's browser

#!/bin/sh

eval `echo $QUERY_STRING | sed 's/'"'"'/%27/g' | \
sed 's/;/%27/g' | \
awk 'BEGIN { RS="&"; FS="=" }
$1 ~ /^[a-zA-Z][a-zA-Z0-9_]*$/ {
printf "QS_%s=%c%s%c\n", $1, 39, toupper($2), 39 }' `
QS_LASTNAME=`echo $QS_LASTNAME | sed /%13/d`