I have .html files in addition to .php files being parsed as php.
I have a page that links to another page as:
http://mysite/rating.html?download=downloads/myfile.zip
Shouldn't that set, in rating.html, the variable download to "downloads/myfile.zip"?
Depending on how the rating.html page is accessed, it is intended to give two different versions of output. If the variable download is specified (via the URL) then it automatically starts downloading the file, tells the user it is being downloaded, and then prints a feedback form. Otherwise, it says nothing about a download and simply prints the form.
I have in rating.html:
<body>
<script language="php">
if (isset($download))
{
</script>
<script language=javascript>
url=<script language="php">echo "\"$download\"";</script>;
window.open(url);
</script>
<script language="php">
echo "Your download should begin shortly. If not, click <a href=\"$download\">here</a>.";
}
</script>
---form printed here---
The problem is, no matter which way I load it, it NEVER starts a download. The isset function call always returns false. Any ideas? I suspect it is something in my config, as it worked before, but I had to reformat. Now after reloading my OS, it has stopped working. I am using WinXP and IIS.
Thanks!