in reply to File writing script (taint mode problem?)

beretboy - please use code tags :)

Going from your scratch pad, the problem is that you haven't defined $q, but you are using strict. Putting a 'my' in front of it (i.e., my $q = new CGI;) makes it work for me.

Always check the webserver logs if you are able to - the error will usually be there. You can also use the 'FatalsToBrowser' setting - check the CGI.pm man page, for example.