|  | Posted by Tim Roberts on 10/26/06 06:02 
"laredotornado@zipmail.com" <laredotornado@zipmail.com> wrote:>
 >This problem only affects PC IE.  On a secured page (a page visited via
 >https), there is a link that reads -- "Download HTML File".  The link
 >connects to this page
 >
 ><?php
 >        require("../../util_fns.php");
 >
 >        session_start();
 >
 >        $user_id = $_REQUEST[USER_ID_PARAM];
 >        $file_contents = generateLoginFile($user_id);
 >
 >        header('Content-Type: text/html');
 >        header('Content-Length:' . strlen($file_contents));
 >        header('Content-Disposition: attachment; filename="' .
 >str_replace("%s", getCompanyName($user_id), AUTO_LOGIN_FILE_TITLE) .
 >'.html"');
 
 Your headers are lying.  You are not sending text/html content.  IE can be
 somewhat picky about the headers.  Try this:
 
 header('Content-Type: application/download');
 --
 Tim Roberts, timr@probo.com
 Providenza & Boekelheide, Inc.
  Navigation: [Reply to this message] |