Are you by chance editing this in a DOS/Windows editor and then uploading it to the machine? If you bring the cgi file up in vi, do you see ^M at the end of each line? If so, you need to remove those lines. 'unix2dos' works nicely. On Mon, 30 Jun 2003, Mike Starke wrote: > Any tips on why this cgi script will not work?