in reply to Editing Entries In A Flat Database with cgi

It's not clear to me what you are trying to do. Could you try separating the CGI code from the rest of it? Databases and HTML need not go hand in hand, you know.

    -- Chip Salzenberg, Free-Floating Agent of Chaos