Jul 31, 2003, 1:23 AM
Post #2 of 19
Re: [tack] why ?my CGI code can't use FTP module!
[In reply to]
following is my code :
it can runs on dos , but not on IE browser .is it wrong ? help!
In what way does it fail to work? What unexpected behaviour areyou seeing? Are you getting any error messages? Is there anything in the web server error log?
It's always a good idea to have "use strict" and "use warnings" in your Perl code as they can help you find several common problems.
A couple of things I've spotted:
1/ You have an unnecessary double quote in the line
Either remove it, or add another one to match it.
2/ Your content-type header is wrong. You should probably use the "header" function from CGI.pm to ensure that you get it right.
Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks