Reputation: 1
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");
}
}
?>
Upvotes: -2
Views: 147
Reputation: 12834
} 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)
Upvotes: 2