/notes/comments.cgi
#!/bin/bash
echo Content-Type: text/html
echo
COMMENTS=${REQUEST_URI##*/}
cat head.comment
cat <<EOF
<h2>Comment...</h2>
<form action="http://inamidst.com/misc/feedback" method="post">
<div><textarea rows="10" cols="50" name="body"></textarea></div>
<div>
<input type="hidden" name="referer" value="[none]" />
Your email address: <input name="sender" type="text" />
<input type="submit" />
</div>
<div>(Comments are moderated so may take some time to appear.)</div>
</form>
EOF
if [ -f $COMMENTS ]
then cat $COMMENTS
fi
cat foot.html