Thanks for that tip! Here's what he sent me, I can't pretend to know too well what the references mean, although if somebody else does, I'd love to hear about it.
I can also post the code in my cgi-bin file, if that would help get to the source of the problem.
#
The problem stems from a...