in reply to ticked off with backticks

Given that this is a CGI, have you looked at Apache's error logs to see if there's helpful information in there?