JS and PHP scripts don't load in Chrome or IE8

157 Views Asked by At

JS and PHP scripts don't load properly under Chrome or IE. I am using FrontPage 2003 (SP-3) to develop a home business website in support of video game development.

<?PHP
if(strstr($_SERVER["HTTP_USER_AGENT"],"MSIE")==false) {
header('Content-type: text/javascript');
header("Content-Disposition: inline; filename=\"register.js\"");

 } else {
      header("Content-type: text/force-download");
      header("Content-Disposition: attachment; filename=\"register.js\"");

 } else {
 <Location register.js>
      ForceType ('application/x-httpd-php')
</Location>
}

require_once("./include/membersite_config.js");


if(isset($_POST['submitted']))
{
   if($fgmembersite->RegisterUser())
   {
        $fgmembersite->RedirectToURL("thank-you.html");
   }
}

?>
1

There are 1 best solutions below

1
On
} else {
 <Location register.js>
      ForceType ('application/x-httpd-php')
</Location>
}

That is not valid PHP...(And you will do really well to listen to AlienWebguy's advice)