#!/usr/local/bin/bash DEBUG= PATH=/usr/local/bin:/usr/bin:/usr/ucb #http get or post if [ ! "$QUERY_STRING" ] ; then read QUERY_STRING fi echo "Content-type: text/html" echo "" echo "
" if [ "`echo $QUERY_STRING | grep 'choose='`" ] ; then chose=`echo $QUERY_STRING | awk -F= '{ print $2 }'` year=`echo $chose | sed s/....$//` else echo "bad data" exit 1 fi if [ "$DEBUG" ] ; then echo "QUERY_STRING: $QUERY_STRING