Thanks for your reply. Yes I know code is from way back when :). I'm just using this code to test on server beore implementing in real code. Code looked fine to me too, so it appears to be a server issue or configuration. I will try to update the CGI.pm which is currently $CGI::VERSION='3.00';. Can you let me know which version you using? I will try to get latest version.